Defines the state object type used by this module.
new TopLevelSymbol(name, pure?): TopLevelSymbol
Attributes
name:
stringname of the variable
pure:
boolean | ((compilation: Compilation, module: Module) => boolean)pure condition
Returns:
TopLevelSymbolCreates an instance of TopLevelSymbol.
Attributes
isPure(compilation, module): boolean
Attributes
setPure(pure): void
Attributes
pure:
PureConditionpure condition
Returns:
voidSets the pure condition
Type:
boolean | ((compilation: Compilation, module: Module) => boolean)