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:
commit
3717757b39
12
gulpfile.js
12
gulpfile.js
@ -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,
|
||||
};
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user