From 363723fc84f7b8477592e0105aeb331ec9a017af Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Mon, 14 Aug 2017 05:01:11 +0200 Subject: node_modules --- node_modules/webpack/lib/node/NodeSourcePlugin.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'node_modules/webpack/lib/node/NodeSourcePlugin.js') diff --git a/node_modules/webpack/lib/node/NodeSourcePlugin.js b/node_modules/webpack/lib/node/NodeSourcePlugin.js index 14a375445..986160028 100644 --- a/node_modules/webpack/lib/node/NodeSourcePlugin.js +++ b/node_modules/webpack/lib/node/NodeSourcePlugin.js @@ -13,6 +13,8 @@ module.exports = class NodeSourcePlugin { } apply(compiler) { const options = this.options; + if(options === false) // allow single kill switch to turn off this plugin + return; function getPathToModule(module, type) { if(type === true || (type === undefined && nodeLibsBrowser[module])) { -- cgit v1.2.3