On this page

getDependencyUsedByExportsCondition(dependency, moduleGraph): null | false | ((moduleGraphConnection: ModuleGraphConnection, runtime: RuntimeSpec) => ConnectionState)
Attributes
dependency:Dependency
the dependency
moduleGraph:ModuleGraph
moduleGraph
Returns:null | false | ((moduleGraphConnection: ModuleGraphConnection, runtime: RuntimeSpec) => ConnectionState)
function to determine if the connection is active

Returns dependency condition


getInnerGraphUtils(compilation): InnerGraphUtils
Attributes
compilation:Compilation
the compilation
utils

Returns the InnerGraph utils scoped to a single compilation.


Type:unique symbol

Usage callback map.


Attributes
addUsage:(parserState: ParserState, symbol: TopLevelSymbol | null, usage: Usage) => void
addVariableUsage:(parser: JavascriptParser, name: string, usage: Usage) => void
bailout:(parserState: ParserState) => void
enable:(parserState: ParserState) => void
getTopLevelSymbol:(parserState: ParserState) => void | TopLevelSymbol
inferDependencyUsage:(module: Module) => void
isEnabled:(parserState: ParserState) => boolean
onUsage:(parserState: ParserState, onUsageCallback: (value: boolean | Set<string> | undefined, module: Module) => void) => void
release:(module: Module) => void
setTopLevelSymbol:(parserState: ParserState, symbol?: TopLevelSymbol) => void
tagTopLevelSymbol:(parser: JavascriptParser, name: string, pure?: boolean | ((compilation: Compilation, module: Module) => boolean)) => TopLevelSymbol | undefined

Type:string | true | TopLevelSymbol