node
object
Customize the NodeJS environment using polyfills or mocks:
node: { console: false, global: true, process: true, Buffer: true, __filename: "mock", __dirname: "mock", setImmediate: true }
Elaborate on this section. What does "mock" or "empty" do? Does<node builtin>
in the current documentation mean you can enable, disable, or polyfill any global Node.js function? (it seemssetImmediate
is the example for that)
© 2012–2016 Tobias Koppers
Licensed under the Creative Commons Attribution License 4.0.
https://webpack.js.org/configuration/node/