Constructors
constructor
- new ModuleGraph(): ModuleGraph
-
Properties
Static
ModuleGraphConnection
Methods
addExplanation
- addExplanation(dependency, explanation): void
-
Returns void
addExtraReason
-
Returns void
cached
- cached<T, V>(fn, ...args): V
-
Parameters
-
fn: ((moduleGraph, ...args) => V)
-
- (moduleGraph, ...args): V
-
Returns V
-
Rest
...args: T
Returns V
cloneModuleAttributes
- cloneModuleAttributes(sourceModule, targetModule): void
-
Returns void
copyOutgoingModuleConnections
- copyOutgoingModuleConnections(oldModule, newModule, filterConnection): void
-
Parameters
-
-
-
filterConnection: ((arg0) => boolean)
-
- (arg0): boolean
-
Returns boolean
Returns void
dependencyCacheProvide
- dependencyCacheProvide(dependency, ...args): any
-
Returns any
freeze
- freeze(cacheStage?): void
-
Parameters
-
Optional
cacheStage: string
Returns void
getConnection
- getConnection(dependency): undefined | ModuleGraphConnection
-
getDepth
- getDepth(module): number
-
Returns number
getExportInfo
- getExportInfo(module, exportName): ExportInfo
-
getExportsInfo
- getExportsInfo(module): ExportsInfo
-
getIncomingConnectionsByOriginModule
- getIncomingConnectionsByOriginModule(module): Map<undefined | Module, readonly ModuleGraphConnection[]>
-
getIssuer
- getIssuer(module): null | Module
-
Returns null | Module
getMeta
- getMeta(thing?): Object
-
getMetaIfExisting
- getMetaIfExisting(thing?): Object
-
getModule
- getModule(dependency): Module
-
getOptimizationBailout
- getOptimizationBailout(module): (string | ((requestShortener) => string))[]
-
Returns (string | ((requestShortener) => string))[]
getOrigin
- getOrigin(dependency): Module
-
getOutgoingConnectionsByModule
- getOutgoingConnectionsByModule(module): undefined | Map<undefined | Module, readonly ModuleGraphConnection[]>
-
getParentBlock
- getParentBlock(dependency): DependenciesBlock
-
getParentBlockIndex
- getParentBlockIndex(dependency): number
-
Returns number
getParentModule
- getParentModule(dependency): Module
-
getPostOrderIndex
- getPostOrderIndex(module): number
-
Returns number
getPreOrderIndex
- getPreOrderIndex(module): number
-
Returns number
getProfile
- getProfile(module): null | ModuleProfile
-
getProvidedExports
- getProvidedExports(module): null | true | string[]
-
Returns null | true | string[]
getReadOnlyExportInfo
- getReadOnlyExportInfo(module, exportName): ExportInfo
-
getResolvedModule
- getResolvedModule(dependency): Module
-
getResolvedOrigin
- getResolvedOrigin(dependency): Module
-
getUsedExports
- getUsedExports(module, runtime): null | boolean | SortableSet<string>
-
Returns null | boolean | SortableSet<string>
isAsync
- isAsync(module): boolean
-
Returns boolean
isExportProvided
- isExportProvided(module, exportName): null | boolean
-
Parameters
-
-
exportName: string | string[]
Returns null | boolean
moveModuleConnections
- moveModuleConnections(oldModule, newModule, filterConnection): void
-
Parameters
-
-
-
filterConnection: ((arg0) => boolean)
-
- (arg0): boolean
-
Returns boolean
Returns void
removeAllModuleAttributes
- removeAllModuleAttributes(): void
-
Returns void
removeConnection
- removeConnection(dependency): void
-
Returns void
removeModuleAttributes
- removeModuleAttributes(module): void
-
Returns void
setAsync
- setAsync(module): void
-
Returns void
setDepth
- setDepth(module, depth): void
-
Returns void
setDepthIfLower
- setDepthIfLower(module, depth): boolean
-
Returns boolean
setIssuer
- setIssuer(module, issuer): void
-
Returns void
setIssuerIfUnset
- setIssuerIfUnset(module, issuer): void
-
Returns void
setModuleMemCaches
- setModuleMemCaches(moduleMemCaches): void
-
Returns void
setParents
- setParents(dependency, block, module, indexInBlock?): void
-
Parameters
-
-
-
-
Optional
indexInBlock: number
Returns void
setPostOrderIndex
- setPostOrderIndex(module, index): void
-
Returns void
setPostOrderIndexIfUnset
- setPostOrderIndexIfUnset(module, index): boolean
-
Returns boolean
setPreOrderIndex
- setPreOrderIndex(module, index): void
-
Returns void
setPreOrderIndexIfUnset
- setPreOrderIndexIfUnset(module, index): boolean
-
Returns boolean
setProfile
- setProfile(module, profile): void
-
Returns void
setResolvedModule
- setResolvedModule(originModule, dependency, module): void
-
Returns void
unfreeze
- unfreeze(): void
-
Returns void
updateModule
- updateModule(dependency, module): void
-
Returns void
Static
clearModuleGraphForModule
- clearModuleGraphForModule(module): void
-
Returns void
Static
getModuleGraphForModule
- getModuleGraphForModule(module, deprecateMessage, deprecationCode): ModuleGraph
-
Parameters
-
-
deprecateMessage: string
-
deprecationCode: string
Static
setModuleGraphForModule
- setModuleGraphForModule(module, moduleGraph): void
-
Returns void