new ChunkGraph(moduleGraph, hashFunction?): ChunkGraphAttributes
moduleGraph:
<ModuleGraph>the module graph
hashFunction:
{HashFunction} the hash function to use
Returns:
<ChunkGraph>Attributes
moduleGraph:
<ModuleGraph>webpack.ChunkGraph.addChunkRuntimeRequirements(chunk, items): voidAttributes
chunk:
<Chunk>the chunk
items:
{Set
} runtime requirements to be added (ownership of this Set is given to ChunkGraph)
Returns:
{void}
webpack.ChunkGraph.addDependentHashModuleToChunk(chunk, module): voidAttributes
chunk:
<Chunk>the new chunk
module:
<RuntimeModule>the module that require a full hash
Returns:
{void}
webpack.ChunkGraph.addFullHashModuleToChunk(chunk, module): voidAttributes
chunk:
<Chunk>the new chunk
module:
<RuntimeModule>the module that require a full hash
Returns:
{void}
webpack.ChunkGraph.addModuleRuntimeRequirements(module, runtime, items, transferOwnership?): voidAttributes
module:
<Module>the module
runtime:
{RuntimeSpec} the runtime
items:
{Set
} runtime requirements to be added (ownership of this Set is given to ChunkGraph when transferOwnership not false)
transferOwnership:
<boolean>true: transfer ownership of the items object, false: items is immutable and shared and won't be modified
Returns:
{void}
webpack.ChunkGraph.addTreeRuntimeRequirements(chunk, items): voidAttributes
chunk:
<Chunk>the chunk
items:
{Iterable
} runtime requirements to be added
Returns:
{void}
webpack.ChunkGraph.attachDependentHashModules(chunk, modules): voidAttributes
chunk:
<Chunk>the chunk
modules:
{Iterable
} the modules that require a full hash
Returns:
{void}
webpack.ChunkGraph.attachFullHashModules(chunk, modules): voidAttributes
chunk:
<Chunk>the chunk
modules:
{Iterable
} the modules that require a full hash
Returns:
{void}
webpack.ChunkGraph.attachModules(chunk, modules): voidAttributes
chunk:
<Chunk>the chunk
modules:
{Iterable
} the modules
Returns:
{void}
webpack.ChunkGraph.attachRuntimeModules(chunk, modules): voidAttributes
chunk:
<Chunk>the chunk
modules:
{Iterable
} the runtime modules
Returns:
{void}
webpack.ChunkGraph.canChunksBeIntegrated(chunkA, chunkB): booleanAttributes
Returns:
<boolean>true, if chunks could be integrated
webpack.ChunkGraph.compareChunks(chunkA, chunkB): -1 | 0 | 1Attributes
Returns:
{-1|0|1} this is a comparator function like sort and returns -1, 0, or 1 based on sort order
webpack.ChunkGraph.connectBlockAndChunkGroup(depBlock, chunkGroup): voidAttributes
depBlock:
<AsyncDependenciesBlock>the async block
chunkGroup:
<ChunkGroup>the chunk group
Returns:
{void}
webpack.ChunkGraph.connectChunkAndEntryModule(chunk, module, entrypoint): voidAttributes
chunk:
<Chunk>the new chunk
module:
<Module>the entry module
entrypoint:
<Entrypoint>the chunk group which must be loaded before the module is executed
Returns:
{void}
webpack.ChunkGraph.connectChunkAndModule(chunk, module): voidAttributes
Returns:
{void}
webpack.ChunkGraph.connectChunkAndRuntimeModule(chunk, module): voidAttributes
chunk:
<Chunk>the new chunk
module:
<RuntimeModule>the runtime module
Returns:
{void}
webpack.ChunkGraph.disconnectChunk(chunk): voidAttributes
chunk:
<Chunk>the chunk which will be disconnected
Returns:
{void}
webpack.ChunkGraph.disconnectChunkAndEntryModule(chunk, module): voidAttributes
Returns:
{void}
webpack.ChunkGraph.disconnectChunkAndModule(chunk, module): voidAttributes
Returns:
{void}
webpack.ChunkGraph.disconnectChunkAndRuntimeModule(chunk, module): voidAttributes
chunk:
<Chunk>the new chunk
module:
<RuntimeModule>the runtime module
Returns:
{void}
webpack.ChunkGraph.disconnectChunkGroup(chunkGroup): voidAttributes
chunkGroup:
<ChunkGroup>the chunk group
Returns:
{void}
webpack.ChunkGraph.disconnectEntries(chunk): voidAttributes
chunk:
<Chunk>the chunk, for which all entries will be removed
Returns:
{void}
webpack.ChunkGraph.disconnectEntryModule(module): voidAttributes
module:
<Module>the entry module, it will no longer be entry
Returns:
{void}
webpack.ChunkGraph.getBlockChunkGroup(depBlock): ChunkGroupAttributes
depBlock:
<AsyncDependenciesBlock>the async block
Returns:
<ChunkGroup>the chunk group
webpack.ChunkGraph.getChunkConditionMap(chunk, filterFn): ChunkConditionMapAttributes
Returns:
{ChunkConditionMap} chunk condition map
webpack.ChunkGraph.getChunkDependentHashModulesIterable(chunk): Iterable<RuntimeModule, any, any>Attributes
chunk:
<Chunk>the chunk
Returns:
{Iterable<RuntimeModule, any, any>} iterable of modules (do not modify)
webpack.ChunkGraph.getChunkEntryDependentChunksIterable(chunk): Iterable<Chunk>Attributes
chunk:
<Chunk>the chunk
Returns:
{Iterable
} iterable of chunks
webpack.ChunkGraph.getChunkEntryModulesIterable(chunk): Iterable<Module>Attributes
chunk:
<Chunk>the chunk
Returns:
{Iterable
} iterable of modules (do not modify)
webpack.ChunkGraph.getChunkEntryModulesWithChunkGroupIterable(chunk): Iterable<Tuple<Module, Entrypoint>>Attributes
chunk:
<Chunk>the chunk
Returns:
{Iterable<Tuple<Module, Entrypoint>>} iterable of modules (do not modify)
webpack.ChunkGraph.getChunkFullHashModulesIterable(chunk): Iterable<RuntimeModule, any, any>Attributes
chunk:
<Chunk>the chunk
Returns:
{Iterable<RuntimeModule, any, any>} iterable of modules (do not modify)
webpack.ChunkGraph.getChunkFullHashModulesSet(chunk): ReadonlySet<RuntimeModule>Attributes
chunk:
<Chunk>the chunk
Returns:
{ReadonlySet
} set of modules (do not modify)
webpack.ChunkGraph.getChunkModuleIdMap(chunk, filterFn, includeAllChunks?): ChunkModuleIdMapEs5Alias_2Attributes
Returns:
{ChunkModuleIdMapEs5Alias_2} chunk to module ids object
webpack.ChunkGraph.getChunkModuleRenderedHashMap(chunk, filterFn, hashLength?, includeAllChunks?): ChunkModuleHashMapAttributes
Returns:
{ChunkModuleHashMap} chunk to module id to module hash object
webpack.ChunkGraph.getChunkModules(chunk): Module[]Attributes
chunk:
<Chunk>the chunk
Returns:
<Module[]>return the modules for this chunk (cached, do not modify)
webpack.ChunkGraph.getChunkModulesIterable(chunk): Iterable<Module>Attributes
chunk:
<Chunk>the chunk
Returns:
{Iterable
} return the modules for this chunk
webpack.ChunkGraph.getChunkModulesIterableBySourceType(chunk, sourceType): Iterable<Module, any, any>Attributes
Returns:
{Iterable<Module, any, any>} return the modules for this chunk
webpack.ChunkGraph.getChunkModuleSourceTypes(chunk, module): ReadonlySet<string>Attributes
Returns:
{ReadonlySet
} source types
webpack.ChunkGraph.getChunkModulesSize(chunk): numberAttributes
chunk:
<Chunk>the chunk
Returns:
<number>total size of all modules in the chunk
webpack.ChunkGraph.getChunkModulesSizes(chunk): Record<string, number>Attributes
chunk:
<Chunk>the chunk
Returns:
{Record<string, number>} total sizes of all modules in the chunk by source type
webpack.ChunkGraph.getChunkRootModules(chunk): Module[]Attributes
chunk:
<Chunk>the chunk
Returns:
<Module[]>root modules of the chunks (ordered by identifier)
webpack.ChunkGraph.getChunkRuntimeModulesInOrder(chunk): RuntimeModule[]Attributes
chunk:
<Chunk>the chunk
Returns:
<RuntimeModule[]>array of modules in order of execution
webpack.ChunkGraph.getChunkRuntimeModulesIterable(chunk): Iterable<RuntimeModule>Attributes
chunk:
<Chunk>the chunk
Returns:
{Iterable
} iterable of modules (do not modify)
webpack.ChunkGraph.getChunkRuntimeRequirements(chunk): ReadonlySet<string>Attributes
chunk:
<Chunk>the chunk
Returns:
{ReadonlySet
} runtime requirements
webpack.ChunkGraph.getChunkSize(chunk, options?): numberAttributes
chunk:
<Chunk>the chunk
options:
{ChunkSizeOptions} options object
Returns:
<number>total size of the chunk
webpack.ChunkGraph.getIntegratedChunksSize(chunkA, chunkB, options?): numberAttributes
Returns:
<number>total size of the chunk or false if chunks can't be integrated
webpack.ChunkGraph.getModuleChunks(module): Chunk[]Attributes
module:
<Module>the module
Returns:
<Chunk[]>array of chunks (cached, do not modify)
webpack.ChunkGraph.getModuleChunksIterable(module): Iterable<Chunk>Attributes
module:
<Module>the module
Returns:
{Iterable
} iterable of chunks (do not modify)
webpack.ChunkGraph.getModuleGraphHash(module, runtime, withConnections?): stringAttributes
Returns:
<string>hash
webpack.ChunkGraph.getModuleGraphHashBigInt(module, runtime, withConnections?): bigintAttributes
Returns:
<bigint>hash
webpack.ChunkGraph.getModuleHash(module, runtime): stringAttributes
module:
<Module>the module
runtime:
{RuntimeSpec} the runtime
Returns:
<string>hash
webpack.ChunkGraph.getModuleId(module): string | numberAttributes
module:
<Module>the module
webpack.ChunkGraph.getModuleRuntimeRequirements(module, runtime): ReadonlySet<string>Attributes
module:
<Module>the module
runtime:
{RuntimeSpec} the runtime
Returns:
{ReadonlySet
} runtime requirements
webpack.ChunkGraph.getModuleRuntimes(module): RuntimeSpecSetAttributes
module:
<Module>the module
Returns:
<RuntimeSpecSet>runtimes
webpack.ChunkGraph.getModuleSourceTypes(module): ReadonlySet<string>Attributes
module:
<Module>module
Returns:
{ReadonlySet
} source types
webpack.ChunkGraph.getNumberOfChunkFullHashModules(chunk): numberAttributes
chunk:
<Chunk>the chunk
Returns:
<number>the number of full hash modules which are contained in this chunk
webpack.ChunkGraph.getNumberOfChunkModules(chunk): numberAttributes
chunk:
<Chunk>the chunk
Returns:
<number>the number of modules which are contained in this chunk
webpack.ChunkGraph.getNumberOfEntryModules(chunk): numberAttributes
chunk:
<Chunk>the chunk
Returns:
<number>the amount of entry modules in chunk
webpack.ChunkGraph.getNumberOfModuleChunks(module): numberAttributes
module:
<Module>the module
Returns:
<number>the number of chunk which contain the module
webpack.ChunkGraph.getNumberOfRuntimeModules(chunk): numberAttributes
chunk:
<Chunk>the chunk
Returns:
<number>the amount of entry modules in chunk
webpack.ChunkGraph.getOrderedChunkModules(chunk, comparator): Module[]Attributes
Returns:
<Module[]>return the modules for this chunk (cached, do not modify)
webpack.ChunkGraph.getOrderedChunkModulesIterable(chunk, comparator): Iterable<Module>Attributes
Returns:
{Iterable
} return the modules for this chunk
webpack.ChunkGraph.getOrderedChunkModulesIterableBySourceType(chunk, sourceType, comparator): Iterable<Module, any, any>Attributes
Returns:
{Iterable<Module, any, any>} return the modules for this chunk
webpack.ChunkGraph.getOrderedModuleChunksIterable(module, sortFn): Iterable<Chunk>Attributes
Returns:
{Iterable
} iterable of chunks (do not modify)
webpack.ChunkGraph.getRenderedModuleHash(module, runtime): stringAttributes
module:
<Module>the module
runtime:
{RuntimeSpec} the runtime
Returns:
<string>hash
webpack.ChunkGraph.getRuntimeChunkDependentChunksIterable(chunk): Iterable<Chunk>Attributes
chunk:
<Chunk>the chunk
Returns:
{Iterable
} iterable of chunks and include chunks from children entrypoints
webpack.ChunkGraph.getRuntimeId(runtime): RuntimeIdAttributes
runtime:
<string>runtime
Returns:
{RuntimeId} the id of the runtime
webpack.ChunkGraph.getTreeRuntimeRequirements(chunk): ReadonlySet<string>Attributes
chunk:
<Chunk>the chunk
Returns:
{ReadonlySet
} runtime requirements
webpack.ChunkGraph.hasChunkEntryDependentChunks(chunk): booleanAttributes
chunk:
<Chunk>the chunk
Returns:
<boolean>true, when it has dependent chunks
webpack.ChunkGraph.hasModuleHashes(module, runtime): booleanAttributes
module:
<Module>the module
runtime:
{RuntimeSpec} the runtime
Returns:
<boolean>true, if the module has hashes for this runtime
webpack.ChunkGraph.hasModuleInGraph(chunk, filterFn, filterChunkFn?): booleanAttributes
Returns:
<boolean>return true if module exists in graph
webpack.ChunkGraph.integrateChunks(chunkA, chunkB): voidAttributes
Returns:
{void}
webpack.ChunkGraph.isEntryModule(module): booleanAttributes
module:
<Module>the checked module
Returns:
<boolean>true, if the module is entry of any chunk
webpack.ChunkGraph.isEntryModuleInChunk(module, chunk): booleanAttributes
Returns:
<boolean>true, if the chunk contains the module as entry
webpack.ChunkGraph.isModuleInChunk(module, chunk): booleanAttributes
Returns:
<boolean>true, if the chunk contains the module
webpack.ChunkGraph.isModuleInChunkGroup(module, chunkGroup): booleanAttributes
module:
<Module>the checked module
chunkGroup:
<ChunkGroup>the checked chunk group
Returns:
<boolean>true, if the chunk contains the module
webpack.ChunkGraph.replaceModule(oldModule, newModule): voidAttributes
Returns:
{void}
webpack.ChunkGraph.setChunkModuleSourceTypes(chunk, module, sourceTypes): voidAttributes
Returns:
{void}
webpack.ChunkGraph.setModuleHashes(module, runtime, hash, renderedHash): voidAttributes
Returns:
{void}
webpack.ChunkGraph.setModuleId(module, id): voidAttributes
module:
<Module>the module
id:
{ModuleId} the id of the module
Returns:
{void}
webpack.ChunkGraph.setRuntimeId(runtime, id): voidAttributes
runtime:
<string>runtime
id:
{RuntimeId} the id of the runtime
Returns:
{void}
webpack.ChunkGraph.upgradeDependentToFullHashModules(chunk): voidAttributes
chunk:
<Chunk>the chunk to upgrade
Returns:
{void}
webpack.ChunkGraph.clearChunkGraphForChunk(chunk): voidAttributes
chunk:
<Chunk>the chunk
Returns:
{void}
webpack.ChunkGraph.clearChunkGraphForModule(module): voidAttributes
module:
<Module>the module
Returns:
{void}
webpack.ChunkGraph.getChunkGraphForChunk(chunk, deprecateMessage, deprecationCode): ChunkGraphAttributes
Returns:
<ChunkGraph>the chunk graph
webpack.ChunkGraph.getChunkGraphForModule(module, deprecateMessage, deprecationCode): ChunkGraphAttributes
Returns:
<ChunkGraph>the chunk graph
webpack.ChunkGraph.setChunkGraphForChunk(chunk, chunkGraph): voidAttributes
chunk:
<Chunk>the chunk
chunkGraph:
<ChunkGraph>the chunk graph
Returns:
{void}
webpack.ChunkGraph.setChunkGraphForModule(module, chunkGraph): voidAttributes
module:
<Module>the module
chunkGraph:
<ChunkGraph>the chunk graph
Returns:
{void}