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