On this page

Options object for node compatibility features.

Type:boolean | "warn-mock" | "mock" | "node-module" | "eval-only"

Include a polyfill for the '__dirname' variable.

Type:boolean | "warn-mock" | "mock" | "node-module" | "eval-only"

Include a polyfill for the '__filename' variable.

Type:boolean | "warn"

Include a polyfill for the 'global' variable.