On this page

Defines the state object type used by this module.

new TopLevelSymbol(name, pure?): TopLevelSymbol
Attributes
name:string
name of the variable
pure:boolean | ((compilation: Compilation, module: Module) => boolean)
pure condition

Creates an instance of TopLevelSymbol.

Attributes
conditional:boolean
name:string
pureFn:(compilation: Compilation, module: Module) => boolean
isPure(compilation, module): boolean
Attributes
compilation:Compilation
compilation
module:Module
module
Returns:boolean
if the symbol is pure

setPure(pure): void
Attributes
pure condition
Returns:void

Sets the pure condition

Type:boolean | ((compilation: Compilation, module: Module) => boolean)