Simplify the disabling of Node polyfills, in gulpfile.js
, since we're now using Webpack 3.x
Webpack was updated a while back, but we apparently forgot to update `gulpfile.js` as well.
This commit is contained in:
parent
b3f8411264
commit
1a3c6f7d9a
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…
Reference in New Issue
Block a user