Merge pull request #8976 from Snuffleupagus/webpack-simpler-node-polyfills-disable

Simplify the disabling of Node polyfills, in `gulpfile.js`, since we're now using Webpack 3.x
This commit is contained in:
Tim van der Meij 2017-09-29 22:10:57 +02:00 committed by GitHub
commit 3717757b39

View File

@ -168,17 +168,7 @@ function createWebpackConfig(defines, output) {
},
// Avoid shadowing actual Node.js variables with polyfills, by disabling
// polyfills/mocks - https://webpack.js.org/configuration/node/
node: {
console: false,
global: false,
process: false,
__filename: false,
__dirname: false,
Buffer: false,
setImmediate: false,
},
// If we upgrade to Webpack 3.0+, the above can be replaced with:
// node: false,
node: false,
};
}