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