mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 14:48:08 +02:00
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
1 changed files with 1 additions and 11 deletions
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…
Add table
Add a link
Reference in a new issue