new ModuleGraph(): ModuleGraphReturns:
<ModuleGraph>Attributes
ModuleGraphConnection:
<ModuleGraphConnection>addExplanation(dependency, explanation): voidAttributes
dependency:
<Dependency>the referencing dependency
explanation:
<string>an explanation
Returns:
{void}
addExtraReason(module, explanation): voidAttributes
Returns:
{void}
cached(fn, ...args): RAttributes
fn:
<object>computer
args:
{T} arguments
Returns:
{R} computed value or cached
cloneModuleAttributes(sourceModule, targetModule): voidAttributes
Returns:
{void}
copyOutgoingModuleConnections(oldModule, newModule, filterConnection): voidAttributes
Returns:
{void}
dependencyCacheProvide(dependency, ...args): voiddependency{D} dependencyargs{Tuple<ARGS, unknown>} arguments, last argument is a function called with moduleGraph, dependency, ...args- Returns: {R} computed value or cached
finishUpdateParent(): voidReturns:
{void}
freeze(cacheStage?): voidAttributes
cacheStage:
<string>a persistent stage name for caching
Returns:
{void}
getConnection(dependency): ModuleGraphConnection | undefinedAttributes
dependency:
<Dependency>the dependency to look for a referenced module
Returns:
<ModuleGraphConnection>
|
<undefined>the connection
getDepth(module): number | nullAttributes
module:
<Module>the module
getExportInfo(module, exportName): ExportInfoAttributes
Returns:
{ExportInfo} info about the export
getExportsInfo(module): ExportsInfoAttributes
module:
<Module>the module
Returns:
{ExportsInfo} info about the exports
getIncomingConnections(module): Iterable<ModuleGraphConnection>Attributes
module:
<Module>the module
Returns:
{Iterable
} reasons why a module is included
getIncomingConnectionsByOriginModule(module): ReadonlyMap<Module | null | undefined, ModuleGraphConnection[]>Attributes
module:
<Module>the module
Returns:
{ReadonlyMap<Module|null|undefined, ModuleGraphConnection[]>} reasons why a module is included, in a map by source module
getIssuer(module): IssuerAttributes
module:
<Module>the module
Returns:
{Issuer} the issuer module
getMeta(thing): MetaAttributes
thing:
<object>any thing
Returns:
{Meta} metadata
getMetaIfExisting(thing): undefinedAttributes
thing:
<object>any thing
Returns:
<undefined>metadata
getModule(dependency): Module | nullAttributes
dependency:
<Dependency>the dependency to look for a referenced module
getOptimizationBailout(module): string | object[]Attributes
module:
<Module>the module
Returns:
<string>
|
<object[]>optimization bailouts
getOrigin(dependency): Module | nullAttributes
dependency:
<Dependency>the dependency to look for a referencing module
getOutgoingConnections(module): Iterable<ModuleGraphConnection>Attributes
module:
<Module>the module
Returns:
{Iterable
} list of outgoing connections
getOutgoingConnectionsByModule(module): ReadonlyMap<Module | undefined, ModuleGraphConnection[]> | undefinedAttributes
module:
<Module>the module
Returns:
{ReadonlyMap<Module|undefined, ModuleGraphConnection[]>|undefined} connections to modules, in a map by module
getParentBlock(dependency): undefinedAttributes
dependency:
<Dependency>the dependency
Returns:
<undefined>parent block
getParentBlockIndex(dependency): numberAttributes
dependency:
<Dependency>the dependency
Returns:
<number>index
getParentModule(dependency): Module | undefinedAttributes
dependency:
<Dependency>the dependency
Returns:
<Module>
|
<undefined>parent module
getPostOrderIndex(module): number | nullAttributes
module:
<Module>the module
getPreOrderIndex(module): number | nullAttributes
module:
<Module>the module
getProfile(module): undefinedAttributes
module:
<Module>the module
Returns:
<undefined>the module profile
getProvidedExports(module): string[] | nullAttributes
module:
<Module>the module
Returns:
<string[]>
|
<null>the provided exports
getReadOnlyExportInfo(module, exportName): ExportInfoAttributes
Returns:
{ExportInfo} info about the export (do not modify)
getResolvedModule(dependency): Module | nullAttributes
dependency:
<Dependency>the dependency to look for a referenced module
getResolvedOrigin(dependency): Module | nullAttributes
dependency:
<Dependency>the dependency to look for a referencing module
getUsedExports(module, runtime): boolean | SortableSet<string> | nullAttributes
module:
<Module>the module
runtime:
{RuntimeSpec} the runtime
Returns:
{boolean|SortableSet
|null} the used exports
false: module is not used at all.
true: the module namespace/object export is used.
SortableSet
: these export names are used.
empty SortableSet
: module is used but no export.
null: unknown, worst case should be assumed.
isAsync(module): booleanAttributes
module:
<Module>the module
Returns:
<boolean>true, if the module is async
isDeferred(module): booleanAttributes
module:
<Module>the module
Returns:
<boolean>true, if the module is used as a deferred module at least once
isExportProvided(module, exportName): boolean | nullAttributes
module:
<Module>the module
exportName:
<string>
|
<string[]>a name of an export
true, if the export is provided by the module.
null, if it's unknown.
false, if it's not provided.
moveModuleConnections(oldModule, newModule, filterConnection): voidAttributes
Returns:
{void}
removeAllModuleAttributes(): voidReturns:
{void}
removeConnection(dependency): voidAttributes
dependency:
<Dependency>the referencing dependency
Returns:
{void}
removeModuleAttributes(module): voidAttributes
module:
<Module>the module
Returns:
{void}
setAsync(module): voidAttributes
module:
<Module>the module
Returns:
{void}
setDepth(module, depth): voidAttributes
Returns:
{void}
setDepthIfLower(module, depth): booleanAttributes
Returns:
<boolean>true, if the depth was set
setIssuer(module, issuer): voidAttributes
Returns:
{void}
setIssuerIfUnset(module, issuer): voidAttributes
Returns:
{void}
setModuleMemCaches(moduleMemCaches): voidmoduleMemCaches{Map<Module, WeakTupleMap<any[], any>>} mem caches for modules for better caching- Returns: {void}
setParentDependenciesBlockIndex(dependency, index): voidAttributes
dependency:
<Dependency>the dependency
index:
<number>the index
Returns:
{void}
setParents(dependency, block, module, indexInBlock?): voidAttributes
dependency:
<Dependency>the dependency
block:
{DependenciesBlock} parent block
module:
<Module>parent module
indexInBlock:
<number>position in block
Returns:
{void}
setPostOrderIndex(module, index): voidAttributes
Returns:
{void}
setPostOrderIndexIfUnset(module, index): booleanAttributes
Returns:
<boolean>true, if the index was set
setPreOrderIndex(module, index): voidAttributes
Returns:
{void}
setPreOrderIndexIfUnset(module, index): booleanAttributes
Returns:
<boolean>true, if the index was set
setProfile(module, profile?): voidAttributes
module:
<Module>the module
profile:
{ModuleProfile} the module profile
Returns:
{void}
setResolvedModule(originModule, dependency, module): voidAttributes
dependency:
<Dependency>the referencing dependency
module:
<Module>the referenced module
Returns:
{void}
unfreeze(): voidReturns:
{void}
updateModule(dependency, module): voidAttributes
dependency:
<Dependency>the referencing dependency
module:
<Module>the referenced module
Returns:
{void}
updateParent(dependency, connection?, parentModule?): voidAttributes
dependency:
<Dependency>the need update dependency
connection:
<ModuleGraphConnection>the target connection
parentModule:
<Module>the parent module
Returns:
{void}
Attributes
module:
<Module>the module
Returns:
{void}
Attributes
Returns:
<ModuleGraph>the module graph
Attributes
module:
<Module>the module
moduleGraph:
<ModuleGraph>the module graph
Returns:
{void}