new ModuleGraph(): ModuleGraphReturns:
<ModuleGraph>Attributes
ModuleGraphConnection:
<ModuleGraphConnection>webpack.ModuleGraph.addExplanation(dependency, explanation): voidAttributes
dependency:
<Dependency>the referencing dependency
explanation:
<string>an explanation
Returns:
{void}
webpack.ModuleGraph.addExtraReason(module, explanation): voidAttributes
Returns:
{void}
webpack.ModuleGraph.cached(fn, ...args?): RAttributes
fn:
<object>computer
args:
{T} arguments
Returns:
{R} computed value or cached
webpack.ModuleGraph.cloneModuleAttributes(sourceModule, targetModule): voidAttributes
Returns:
{void}
webpack.ModuleGraph.copyOutgoingModuleConnections(oldModule, newModule, filterConnection): voidAttributes
Returns:
{void}
webpack.ModuleGraph.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
webpack.ModuleGraph.finishUpdateParent(): voidReturns:
{void}
webpack.ModuleGraph.freeze(cacheStage?): voidAttributes
cacheStage:
<string>a persistent stage name for caching
Returns:
{void}
webpack.ModuleGraph.getConnection(dependency): ModuleGraphConnectionAttributes
dependency:
<Dependency>the dependency to look for a referenced module
Returns:
<ModuleGraphConnection>the connection
webpack.ModuleGraph.getDepth(module): numberAttributes
module:
<Module>the module
Returns:
<number>the depth of the module
webpack.ModuleGraph.getExportInfo(module, exportName): ExportInfoAttributes
Returns:
{ExportInfo} info about the export
webpack.ModuleGraph.getExportsInfo(module): ExportsInfoAttributes
module:
<Module>the module
Returns:
{ExportsInfo} info about the exports
webpack.ModuleGraph.getIncomingConnections(module): Iterable<ModuleGraphConnection>Attributes
module:
<Module>the module
Returns:
{Iterable
} reasons why a module is included
webpack.ModuleGraph.getIncomingConnectionsByOriginModule(module): ReadonlyMap<Module, ModuleGraphConnection[]>Attributes
module:
<Module>the module
Returns:
{ReadonlyMap<Module, ModuleGraphConnection[]>} reasons why a module is included, in a map by source module
webpack.ModuleGraph.getIssuer(module): ModuleAttributes
module:
<Module>the module
Returns:
<Module>the issuer module
webpack.ModuleGraph.getMeta(thing): MetaAttributes
thing:
<object>any thing
Returns:
{Meta} metadata
webpack.ModuleGraph.getMetaIfExisting(thing): MetaAttributes
thing:
<object>any thing
Returns:
{Meta} metadata
webpack.ModuleGraph.getModule(dependency): ModuleAttributes
dependency:
<Dependency>the dependency to look for a referenced module
Returns:
<Module>the referenced module
webpack.ModuleGraph.getOptimizationBailout(module): string | object[]Attributes
module:
<Module>the module
Returns:
<string>
|
<object[]>optimization bailouts
webpack.ModuleGraph.getOrigin(dependency): ModuleAttributes
dependency:
<Dependency>the dependency to look for a referencing module
Returns:
<Module>the referencing module
webpack.ModuleGraph.getOutgoingConnections(module): Iterable<ModuleGraphConnection>Attributes
module:
<Module>the module
Returns:
{Iterable
} list of outgoing connections
webpack.ModuleGraph.getOutgoingConnectionsByModule(module): ReadonlyMap<Module, ModuleGraphConnection[]>Attributes
module:
<Module>the module
Returns:
{ReadonlyMap<Module, ModuleGraphConnection[]>} connections to modules, in a map by module
webpack.ModuleGraph.getParentBlock(dependency): DependenciesBlockAttributes
dependency:
<Dependency>the dependency
Returns:
{DependenciesBlock} parent block
webpack.ModuleGraph.getParentBlockIndex(dependency): numberAttributes
dependency:
<Dependency>the dependency
Returns:
<number>index
webpack.ModuleGraph.getParentModule(dependency): ModuleAttributes
dependency:
<Dependency>the dependency
Returns:
<Module>parent module
webpack.ModuleGraph.getPostOrderIndex(module): numberAttributes
module:
<Module>the module
Returns:
<number>the index of the module
webpack.ModuleGraph.getPreOrderIndex(module): numberAttributes
module:
<Module>the module
Returns:
<number>the index of the module
webpack.ModuleGraph.getProfile(module): ModuleProfileAttributes
module:
<Module>the module
Returns:
{ModuleProfile} the module profile
webpack.ModuleGraph.getProvidedExports(module): string[]Attributes
module:
<Module>the module
Returns:
<string[]>the provided exports
webpack.ModuleGraph.getReadOnlyExportInfo(module, exportName): ExportInfoAttributes
Returns:
{ExportInfo} info about the export (do not modify)
webpack.ModuleGraph.getResolvedModule(dependency): ModuleAttributes
dependency:
<Dependency>the dependency to look for a referenced module
Returns:
<Module>the referenced module
webpack.ModuleGraph.getResolvedOrigin(dependency): ModuleAttributes
dependency:
<Dependency>the dependency to look for a referencing module
Returns:
<Module>the original referencing module
webpack.ModuleGraph.getUsedExports(module, runtime): boolean | SortableSet<string>Attributes
module:
<Module>the module
runtime:
{RuntimeSpec} the runtime
Returns:
{boolean|SortableSet
} 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.
webpack.ModuleGraph.isAsync(module): booleanAttributes
module:
<Module>the module
Returns:
<boolean>true, if the module is async
webpack.ModuleGraph.isDeferred(module): booleanAttributes
module:
<Module>the module
Returns:
<boolean>true, if the module is used as a deferred module at least once
webpack.ModuleGraph.isExportProvided(module, exportName): booleanAttributes
module:
<Module>the module
exportName:
<string>
|
<string[]>a name of an export
Returns:
<boolean>true, if the export is provided by the module.
null, if it's unknown.
false, if it's not provided.
webpack.ModuleGraph.moveModuleConnections(oldModule, newModule, filterConnection): voidAttributes
Returns:
{void}
webpack.ModuleGraph.removeAllModuleAttributes(): voidReturns:
{void}
webpack.ModuleGraph.removeConnection(dependency): voidAttributes
dependency:
<Dependency>the referencing dependency
Returns:
{void}
webpack.ModuleGraph.removeModuleAttributes(module): voidAttributes
module:
<Module>the module
Returns:
{void}
webpack.ModuleGraph.setAsync(module): voidAttributes
module:
<Module>the module
Returns:
{void}
webpack.ModuleGraph.setDepth(module, depth): voidAttributes
Returns:
{void}
webpack.ModuleGraph.setDepthIfLower(module, depth): booleanAttributes
Returns:
<boolean>true, if the depth was set
webpack.ModuleGraph.setIssuer(module, issuer): voidAttributes
Returns:
{void}
webpack.ModuleGraph.setIssuerIfUnset(module, issuer): voidAttributes
Returns:
{void}
webpack.ModuleGraph.setModuleMemCaches(moduleMemCaches): voidmoduleMemCaches{Map<Module, WeakTupleMap<any[], any>>} mem caches for modules for better caching- Returns: {void}
webpack.ModuleGraph.setParentDependenciesBlockIndex(dependency, index): voidAttributes
dependency:
<Dependency>the dependency
index:
<number>the index
Returns:
{void}
webpack.ModuleGraph.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}
webpack.ModuleGraph.setPostOrderIndex(module, index): voidAttributes
Returns:
{void}
webpack.ModuleGraph.setPostOrderIndexIfUnset(module, index): booleanAttributes
Returns:
<boolean>true, if the index was set
webpack.ModuleGraph.setPreOrderIndex(module, index): voidAttributes
Returns:
{void}
webpack.ModuleGraph.setPreOrderIndexIfUnset(module, index): booleanAttributes
Returns:
<boolean>true, if the index was set
webpack.ModuleGraph.setProfile(module, profile?): voidAttributes
module:
<Module>the module
profile:
{ModuleProfile} the module profile
Returns:
{void}
webpack.ModuleGraph.setResolvedModule(originModule, dependency, module): voidAttributes
originModule:
<Module>the referencing module
dependency:
<Dependency>the referencing dependency
module:
<Module>the referenced module
Returns:
{void}
webpack.ModuleGraph.unfreeze(): voidReturns:
{void}
webpack.ModuleGraph.updateModule(dependency, module): voidAttributes
dependency:
<Dependency>the referencing dependency
module:
<Module>the referenced module
Returns:
{void}
webpack.ModuleGraph.updateParent(dependency, connection?, parentModule?): voidAttributes
dependency:
<Dependency>the need update dependency
connection:
<ModuleGraphConnection>the target connection
parentModule:
<Module>the parent module
Returns:
{void}
webpack.ModuleGraph.clearModuleGraphForModule(module): voidAttributes
module:
<Module>the module
Returns:
{void}
webpack.ModuleGraph.getModuleGraphForModule(module, deprecateMessage, deprecationCode): ModuleGraphAttributes
Returns:
<ModuleGraph>the module graph
webpack.ModuleGraph.setModuleGraphForModule(module, moduleGraph): voidAttributes
module:
<Module>the module
moduleGraph:
<ModuleGraph>the module graph
Returns:
{void}