On this page

new SideEffectsFlagPlugin(analyseSource?): SideEffectsFlagPlugin
Attributes
analyseSource:boolean
analyse source code for side effects

Creates an instance of SideEffectsFlagPlugin.

apply(compiler): void
Attributes
compiler:Compiler
the compiler instance
Returns:void

Applies the plugin by registering its hooks on the compiler.


Attributes
moduleName:string
the module name
the flag value
cache:Map<string, RegExp>
cache for glob to regexp
Returns:boolean | undefined
true, when the module has side effects, undefined or false when not

Module has side effects.