Skip to content

Commit

Permalink
Merge pull request mozilla#8976 from Snuffleupagus/webpack-simpler-no…
Browse files Browse the repository at this point in the history
…de-polyfills-disable

Simplify the disabling of Node polyfills, in `gulpfile.js`, since we're now using Webpack 3.x
  • Loading branch information
timvandermeij committed Sep 29, 2017
2 parents fb4214d + aa6257d commit efcfbd3
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
}

Expand Down

0 comments on commit efcfbd3

Please sign in to comment.