On this page

The abilities of the environment where the webpack generated code should run.

Type:boolean

The environment supports arrow functions ('() => { ... }').

Type:boolean

The environment supports async function and await ('async function () await ...').

Type:boolean

The environment supports BigInt as literal (123n).

Type:boolean

The environment supports const and let for variable declarations.

Type:boolean

The environment supports destructuring ('a, b = obj').

Type:boolean

The environment supports 'document'.

Type:boolean

The environment supports an async import() function to import EcmaScript modules.

Type:boolean

The environment supports an async import() is available when creating a worker.

Type:boolean

The environment supports 'for of' iteration ('for (const x of array) { ... }').

Type:boolean

The environment supports generator functions and yield ('function* () yield ...').

Type:boolean

The environment supports 'globalThis'.

Type:boolean

The environment supports 'Object.hasOwn'.

Type:boolean

The environment supports import.meta.dirname and import.meta.filename.

Type:boolean

The environment supports let for variable declarations.

Type:boolean

The environment supports logical assignment operators ('a ||= b', 'a &&= b', 'a ??= b').

Type:boolean

The environment supports object method shorthand ('module() {}').

Type:boolean

The environment supports EcmaScript Module syntax to import EcmaScript modules (import ... from '...').

Type:boolean

The environment supports <link rel="modulepreload"> to preload EcmaScript modules.

Type:boolean

The environment supports process.getBuiltinModule() to synchronously load Node.js core modules.

Type:boolean

The environment supports node: prefix for Node.js core modules.

Type:boolean

The environment supports optional chaining ('obj?.a' or 'obj?.()').

Type:boolean

The environment supports spread and rest in array/object literals and calls ('{ ...obj }', 'fn(...args)').

Type:boolean

The environment supports 'Symbol' (and well-known symbols like 'Symbol.toStringTag').

Type:boolean

The environment supports template literals.