Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

webpack-node-externals

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

webpack-node-externals - npm Package Compare versions

Comparing version 1.3.3 to 1.4.3

2

index.js

@@ -46,3 +46,3 @@ var fs = require("fs");

// in case absolute, strip all parts before */modulesDir/
req = req.replace(/^\/.*?node_modules\//, '');
req = req.replace(/^.*?\/node_modules\//, '');
// return the module name

@@ -49,0 +49,0 @@ return req.split('/')[0];

{
"name": "webpack-node-externals",
"version": "1.3.3",
"version": "1.4.3",
"description": "Easily exclude node_modules in Webpack bundle",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -11,3 +11,3 @@ Webpack node modules externals

When bundling with Webpack for the backend - you usually wouldn't want to bundle its `node_modules` dependencies.
When bundling with Webpack for the backend - you usually don't want to bundle its `node_modules` dependencies.
This library creates an *externals* function that ignores `node_modules` when bundling in Webpack.<br/>(Inspired by the great [Backend apps with Webpack](http://jlongster.com/Backend-Apps-with-Webpack--Part-I) series)

@@ -14,0 +14,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc