Defines the known meta type used by this module.
new ModuleGraph(): ModuleGraph
ModuleGraphDefines the known meta type used by this module.
typeof ModuleGraphConnectionaddExplanation(dependency, explanation): void
Adds the provided dependency to the module graph.
addExtraReason(module, explanation): void
Adds the provided module to the module graph.
cached(fn, ...args?): R
Returns computed value or cached.
cloneModuleAttributes(sourceModule, targetModule): void
Clones module attributes.
copyOutgoingModuleConnections(oldModule, newModule, filterConnection): void
ModuleModule(moduleGraphConnection: ModuleGraphConnection) => booleanvoidCopies outgoing module connections.
dependencyCacheProvide(dependency, ...args?): R
D[ARGS, ...((moduleGraph: ModuleGraph, dependency: D, args: ARGS) => R)[]]RDependency cache provide.
finishUpdateParent(): void
voidFinish update parent.
freeze(cacheStage?): void
Processes the provided cache stage.
getConnection(dependency): ModuleGraphConnection | undefined
DependencyModuleGraphConnection | undefinedReturns the connection.
getDepth(module): number | null
Returns the depth of the module.
getExportInfo(module, exportName): ExportInfo
Returns info about the export.
getExportsInfo(module): ExportsInfo
ModuleExportsInfoReturns info about the exports.
getIncomingConnections(module): Iterable<ModuleGraphConnection>
ModuleIterable<ModuleGraphConnection>Gets incoming connections.
getIncomingConnectionsByOriginModule(module): ReadonlyMap<Module | null | undefined, readonly ModuleGraphConnection[]>
ModuleReadonlyMap<Module | null | undefined, readonly ModuleGraphConnection[]>Gets incoming connections by origin module.
getIssuer(module): Issuer
Returns the issuer module.
getMeta(thing): Meta
Returns metadata.
getMetaIfExisting(thing): Meta | undefined
Gets meta if existing.
getModule(dependency): Module | null
DependencyReturns the referenced module.
getOptimizationBailout(module): (string | ((requestShortener: RequestShortener) => string))[]
Module(string | ((requestShortener: RequestShortener) => string))[]Gets optimization bailout.
getOrigin(dependency): Module | null
DependencyReturns the referencing module.
getOutgoingConnections(module): Iterable<ModuleGraphConnection>
ModuleIterable<ModuleGraphConnection>Gets outgoing connections.
getOutgoingConnectionsByModule(module): ReadonlyMap<Module | undefined, readonly ModuleGraphConnection[]> | undefined
ModuleReadonlyMap<Module | undefined, readonly ModuleGraphConnection[]> | undefinedGets outgoing connections by module.
getParentBlock(dependency): DependenciesBlock | undefined
DependencyDependenciesBlock | undefinedReturns parent block.
getParentBlockIndex(dependency): number
DependencynumberGets parent block index.
getParentModule(dependency): Module | undefined
DependencyGets parent module.
getPostOrderIndex(module): number | null
Gets post order index.
getPreOrderIndex(module): number | null
Gets pre order index.
getProfile(module): ModuleProfile | undefined
ModuleModuleProfile | undefinedReturns the module profile.
getProvidedExports(module): true | string[] | null
Gets provided exports.
getReadOnlyExportInfo(module, exportName): ExportInfo
ModulestringExportInfoGets read only export info.
getResolvedModule(dependency): Module | null
DependencyGets resolved module.
getResolvedOrigin(dependency): Module | null
DependencyGets resolved origin.
getUsedExports(module, runtime): boolean | SortableSet<string> | null
ModuleRuntimeSpecboolean | SortableSet<string> | nullReturns the used exports.
isAsync(module): boolean
Checks whether this module graph is async.
isDeferred(module): boolean
Checks whether this module graph is deferred.
isExportProvided(module, exportName): boolean | null
Checks whether this module graph is export provided.
moveModuleConnections(oldModule, newModule, filterConnection): void
ModuleModule(moduleGraphConnection: ModuleGraphConnection) => booleanvoidMove module connections.
removeAllModuleAttributes(): void
voidRemoves all module attributes.
removeConnection(dependency): void
DependencyvoidRemoves connection.
removeModuleAttributes(module): void
Removes module attributes.
setAsync(module): void
Updates async using the provided module.
setDepth(module, depth): void
Updates depth using the provided module.
setDepthIfLower(module, depth): boolean
Sets depth if lower.
setIssuer(module, issuer): void
Updates issuer using the provided module.
setIssuerIfUnset(module, issuer): void
Sets issuer if unset.
setModuleMemCaches(moduleMemCaches): void
Sets module mem caches.
setParentDependenciesBlockIndex(dependency, index): void
Sets parent dependencies block index.
setParents(dependency, block, module, indexInBlock?): void
DependencyDependenciesBlockModulenumbervoidUpdates parents using the provided dependency.
setPostOrderIndex(module, index): void
Sets post order index.
setPostOrderIndexIfUnset(module, index): boolean
Sets post order index if unset.
setPreOrderIndex(module, index): void
Sets pre order index.
setPreOrderIndexIfUnset(module, index): boolean
Sets pre order index if unset.
setProfile(module, profile?): void
Updates profile using the provided module.
setResolvedModule(originModule, dependency, module): void
Sets resolved module.
unfreeze(): void
voidDefines the known meta type used by this module.
updateModule(dependency, module): void
Updates module using the provided dependency.
updateParent(dependency, connection?, parentModule?): void
DependencyModuleGraphConnectionModulevoidUpdates parent using the provided dependency.
Clear module graph for module.
ModulestringstringModuleGraphGets module graph for module.
Sets module graph for module.