X

Sections

Get StartedContribute

Node

Edit this Page  

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
}
todo
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 functions? (it seems setImmediate is the example for that)

Contributors:

Contributor to this pageContributor to this page