diff options
Diffstat (limited to 'node_modules/webpack/lib/node/NodeSourcePlugin.js')
-rw-r--r-- | node_modules/webpack/lib/node/NodeSourcePlugin.js | 2 |
1 files changed, 2 insertions, 0 deletions
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])) {
|