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.7.0 to 1.7.1

2

package.json
{
"name": "webpack-node-externals",
"version": "1.7.0",
"version": "1.7.1",
"description": "Easily exclude node_modules in Webpack bundle",

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

@@ -57,4 +57,15 @@ Webpack node modules externals

Read the modules from the `package.json` file instead of the `node_modules` folder.
<br/>Accepts a boolean or a configuration object:
```js
{
modulesFromFile: true,
/* or */
modulesFromFile: {
exclude: [/* sections to exclude, i.e 'devDependencies' */],
include: [/* sections to explicitly include, i.e only 'dependencies' */]
}
}
```
#### Example
## Usage example
```js

@@ -61,0 +72,0 @@ var nodeExternals = require('webpack-node-externals');

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