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

Hierarchy

  • Environment

Properties

arrowFunction?: boolean

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

bigIntLiteral?: boolean

The environment supports BigInt as literal (123n).

const?: boolean

The environment supports const and let for variable declarations.

destructuring?: boolean

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

dynamicImport?: boolean

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

forOf?: boolean

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

module?: boolean

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

optionalChaining?: boolean

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

templateLiteral?: boolean

The environment supports template literals.

Generated using TypeDoc