Constructors
constructor
- new ChunkGraph(moduleGraph, hashFunction?): ChunkGraph
-
Parameters
-
-
Optional
hashFunction: string | typeof Hash
Properties
moduleGraph
Methods
addChunkRuntimeRequirements
- addChunkRuntimeRequirements(chunk, items): void
-
Returns void
addDependentHashModuleToChunk
- addDependentHashModuleToChunk(chunk, module): void
-
Returns void
addFullHashModuleToChunk
- addFullHashModuleToChunk(chunk, module): void
-
Returns void
addModuleRuntimeRequirements
- addModuleRuntimeRequirements(module, runtime, items, transferOwnership?): void
-
Parameters
-
-
-
items: Set<string>
-
Optional
transferOwnership: boolean
Returns void
addTreeRuntimeRequirements
- addTreeRuntimeRequirements(chunk, items): void
-
Returns void
attachDependentHashModules
- attachDependentHashModules(chunk, modules): void
-
Returns void
attachFullHashModules
- attachFullHashModules(chunk, modules): void
-
Returns void
attachModules
- attachModules(chunk, modules): void
-
Returns void
attachRuntimeModules
- attachRuntimeModules(chunk, modules): void
-
Returns void
canChunksBeIntegrated
- canChunksBeIntegrated(chunkA, chunkB): boolean
-
Returns boolean
compareChunks
- compareChunks(chunkA, chunkB): 0 | 1 | -1
-
Returns 0 | 1 | -1
connectBlockAndChunkGroup
- connectBlockAndChunkGroup(depBlock, chunkGroup): void
-
Returns void
connectChunkAndEntryModule
- connectChunkAndEntryModule(chunk, module, entrypoint?): void
-
Returns void
connectChunkAndModule
- connectChunkAndModule(chunk, module): void
-
Returns void
connectChunkAndRuntimeModule
- connectChunkAndRuntimeModule(chunk, module): void
-
Returns void
disconnectChunk
- disconnectChunk(chunk): void
-
Returns void
disconnectChunkAndEntryModule
- disconnectChunkAndEntryModule(chunk, module): void
-
Returns void
disconnectChunkAndModule
- disconnectChunkAndModule(chunk, module): void
-
Returns void
disconnectChunkAndRuntimeModule
- disconnectChunkAndRuntimeModule(chunk, module): void
-
Returns void
disconnectChunkGroup
- disconnectChunkGroup(chunkGroup): void
-
Returns void
disconnectEntries
- disconnectEntries(chunk): void
-
Returns void
disconnectEntryModule
- disconnectEntryModule(module): void
-
Returns void
getBlockChunkGroup
- getBlockChunkGroup(depBlock): ChunkGroup
-
getChunkConditionMap
- getChunkConditionMap(chunk, filterFn): Record<string | number, boolean>
-
Parameters
-
-
filterFn: ((c, chunkGraph) => boolean)
-
- (c, chunkGraph): boolean
-
Returns boolean
Returns Record<string | number, boolean>
getChunkDependentHashModulesIterable
- getChunkDependentHashModulesIterable(chunk): undefined | Iterable<RuntimeModule>
-
getChunkEntryDependentChunksIterable
- getChunkEntryDependentChunksIterable(chunk): Iterable<Chunk>
-
getChunkEntryModulesIterable
- getChunkEntryModulesIterable(chunk): Iterable<Module>
-
getChunkEntryModulesWithChunkGroupIterable
- getChunkEntryModulesWithChunkGroupIterable(chunk): Iterable<[Module, undefined | Entrypoint]>
-
getChunkFullHashModulesIterable
- getChunkFullHashModulesIterable(chunk): undefined | Iterable<RuntimeModule>
-
getChunkFullHashModulesSet
- getChunkFullHashModulesSet(chunk): undefined | ReadonlySet<RuntimeModule>
-
Returns undefined | ReadonlySet<RuntimeModule>
getChunkModuleIdMap
- getChunkModuleIdMap(chunk, filterFn, includeAllChunks?): Record<string | number, (string | number)[]>
-
Parameters
-
-
filterFn: ((m) => boolean)
-
- (m): boolean
-
Returns boolean
-
Optional
includeAllChunks: boolean
Returns Record<string | number, (string | number)[]>
getChunkModuleRenderedHashMap
- getChunkModuleRenderedHashMap(chunk, filterFn, hashLength?, includeAllChunks?): Record<string | number, Record<string | number, string>>
-
Parameters
-
-
filterFn: ((m) => boolean)
-
- (m): boolean
-
Returns boolean
-
Optional
hashLength: number
-
Optional
includeAllChunks: boolean
Returns Record<string | number, Record<string | number, string>>
getChunkModuleSourceTypes
- getChunkModuleSourceTypes(chunk, module): Set<string>
-
Returns Set<string>
getChunkModules
- getChunkModules(chunk): Module[]
-
getChunkModulesIterable
- getChunkModulesIterable(chunk): Iterable<Module>
-
getChunkModulesIterableBySourceType
- getChunkModulesIterableBySourceType(chunk, sourceType): undefined | Iterable<Module>
-
getChunkModulesSize
- getChunkModulesSize(chunk): number
-
Returns number
getChunkModulesSizes
- getChunkModulesSizes(chunk): Record<string, number>
-
Returns Record<string, number>
getChunkRootModules
- getChunkRootModules(chunk): Module[]
-
getChunkRuntimeModulesInOrder
- getChunkRuntimeModulesInOrder(chunk): RuntimeModule[]
-
getChunkRuntimeModulesIterable
- getChunkRuntimeModulesIterable(chunk): Iterable<RuntimeModule>
-
getChunkRuntimeRequirements
- getChunkRuntimeRequirements(chunk): ReadonlySet<string>
-
Returns ReadonlySet<string>
getChunkSize
- getChunkSize(chunk, options?): number
-
Returns number
getIntegratedChunksSize
- getIntegratedChunksSize(chunkA, chunkB, options?): number
-
Returns number
getModuleChunks
- getModuleChunks(module): Chunk[]
-
getModuleChunksIterable
- getModuleChunksIterable(module): Iterable<Chunk>
-
getModuleGraphHash
- getModuleGraphHash(module, runtime, withConnections?): string
-
Parameters
-
-
-
Optional
withConnections: boolean
Returns string
getModuleGraphHashBigInt
- getModuleGraphHashBigInt(module, runtime, withConnections?): bigint
-
Parameters
-
-
-
Optional
withConnections: boolean
Returns bigint
getModuleHash
- getModuleHash(module, runtime): string
-
Returns string
getModuleId
- getModuleId(module): string | number
-
Returns string | number
getModuleRuntimeRequirements
- getModuleRuntimeRequirements(module, runtime): ReadonlySet<string>
-
Returns ReadonlySet<string>
getModuleRuntimes
- getModuleRuntimes(module): RuntimeSpecSet
-
getModuleSourceTypes
- getModuleSourceTypes(module): Set<string>
-
Returns Set<string>
getNumberOfChunkFullHashModules
- getNumberOfChunkFullHashModules(chunk): number
-
Returns number
getNumberOfChunkModules
- getNumberOfChunkModules(chunk): number
-
Returns number
getNumberOfEntryModules
- getNumberOfEntryModules(chunk): number
-
Returns number
getNumberOfModuleChunks
- getNumberOfModuleChunks(module): number
-
Returns number
getNumberOfRuntimeModules
- getNumberOfRuntimeModules(chunk): number
-
Returns number
getOrderedChunkModules
- getOrderedChunkModules(chunk, comparator): Module[]
-
Parameters
-
-
comparator: ((arg0, arg1) => 0 | 1 | -1)
-
- (arg0, arg1): 0 | 1 | -1
-
Returns 0 | 1 | -1
getOrderedChunkModulesIterable
- getOrderedChunkModulesIterable(chunk, comparator): Iterable<Module>
-
Parameters
-
-
comparator: ((arg0, arg1) => 0 | 1 | -1)
-
- (arg0, arg1): 0 | 1 | -1
-
Returns 0 | 1 | -1
getOrderedChunkModulesIterableBySourceType
- getOrderedChunkModulesIterableBySourceType(chunk, sourceType, comparator): undefined | Iterable<Module>
-
Parameters
-
-
sourceType: string
-
comparator: ((arg0, arg1) => 0 | 1 | -1)
-
- (arg0, arg1): 0 | 1 | -1
-
Returns 0 | 1 | -1
getOrderedModuleChunksIterable
- getOrderedModuleChunksIterable(module, sortFn): Iterable<Chunk>
-
Parameters
-
-
sortFn: ((arg0, arg1) => 0 | 1 | -1)
-
- (arg0, arg1): 0 | 1 | -1
-
Returns 0 | 1 | -1
getRenderedModuleHash
- getRenderedModuleHash(module, runtime): string
-
Returns string
getRuntimeId
- getRuntimeId(runtime): string | number
-
Returns string | number
getTreeRuntimeRequirements
- getTreeRuntimeRequirements(chunk): ReadonlySet<string>
-
Returns ReadonlySet<string>
hasChunkEntryDependentChunks
- hasChunkEntryDependentChunks(chunk): boolean
-
Returns boolean
hasModuleHashes
- hasModuleHashes(module, runtime): boolean
-
Returns boolean
hasModuleInGraph
- hasModuleInGraph(chunk, filterFn, filterChunkFn?): boolean
-
Parameters
-
-
filterFn: ((m) => boolean)
-
- (m): boolean
-
Returns boolean
-
Optional
filterChunkFn: ((c, chunkGraph) => boolean)
-
- (c, chunkGraph): boolean
-
Returns boolean
Returns boolean
integrateChunks
- integrateChunks(chunkA, chunkB): void
-
Returns void
isEntryModule
- isEntryModule(module): boolean
-
Returns boolean
isEntryModuleInChunk
- isEntryModuleInChunk(module, chunk): boolean
-
Returns boolean
isModuleInChunk
- isModuleInChunk(module, chunk): boolean
-
Returns boolean
isModuleInChunkGroup
- isModuleInChunkGroup(module, chunkGroup): boolean
-
Returns boolean
replaceModule
- replaceModule(oldModule, newModule): void
-
Returns void
setChunkModuleSourceTypes
- setChunkModuleSourceTypes(chunk, module, sourceTypes): void
-
Returns void
setModuleHashes
- setModuleHashes(module, runtime, hash, renderedHash): void
-
Parameters
-
-
-
hash: string
-
renderedHash: string
Returns void
setModuleId
- setModuleId(module, id): void
-
Returns void
setRuntimeId
- setRuntimeId(runtime, id): void
-
Parameters
-
runtime: string
-
id: string | number
Returns void
upgradeDependentToFullHashModules
- upgradeDependentToFullHashModules(chunk): void
-
Returns void
Static
clearChunkGraphForChunk
- clearChunkGraphForChunk(chunk): void
-
Returns void
Static
clearChunkGraphForModule
- clearChunkGraphForModule(module): void
-
Returns void
Static
getChunkGraphForChunk
- getChunkGraphForChunk(chunk, deprecateMessage, deprecationCode): ChunkGraph
-
Parameters
-
-
deprecateMessage: string
-
deprecationCode: string
Static
getChunkGraphForModule
- getChunkGraphForModule(module, deprecateMessage, deprecationCode): ChunkGraph
-
Parameters
-
-
deprecateMessage: string
-
deprecationCode: string
Static
setChunkGraphForChunk
- setChunkGraphForChunk(chunk, chunkGraph): void
-
Returns void
Static
setChunkGraphForModule
- setChunkGraphForModule(module, chunkGraph): void
-
Returns void