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 2.2.0 to 2.3.0

2

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

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

@@ -66,2 +66,3 @@ Webpack node modules externals

modulesFromFile: {
fileName: /* path to package.json to read from */,
includeInBundle: [/* whole sections to include in the bundle, i.e 'devDependencies' */],

@@ -68,0 +69,0 @@ excludeFromBundle: [/* whole sections to explicitly exclude from the bundle, i.e only 'dependencies' */]

@@ -47,3 +47,3 @@ var fs = require('fs');

var fileName = options.fileName || 'package.json';
var packageJsonString = fs.readFileSync(path.join(process.cwd(), './' + fileName), 'utf8');
var packageJsonString = fs.readFileSync(path.resolve(process.cwd(), fileName), 'utf8');
packageJson = JSON.parse(packageJsonString);

@@ -50,0 +50,0 @@ } catch (e){

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