new ChunkGraph(moduleGraph, hashFunction?): voidmoduleGraph{ModuleGraph} the module graphhashFunction{HashFunction} the hash function to use- Returns: {ChunkGraph}
moduleGraph{ModuleGraph}
webpack.ChunkGraph.addChunkRuntimeRequirements(chunk, items): voidchunk{Chunk} the chunkitems{Set} runtime requirements to be added (ownership of this Set is given to ChunkGraph) - Returns: {void}
webpack.ChunkGraph.addDependentHashModuleToChunk(chunk, module): voidchunk{Chunk} the new chunkmodule{RuntimeModule} the module that require a full hash- Returns: {void}
webpack.ChunkGraph.addFullHashModuleToChunk(chunk, module): voidchunk{Chunk} the new chunkmodule{RuntimeModule} the module that require a full hash- Returns: {void}
webpack.ChunkGraph.addModuleRuntimeRequirements(module, runtime, items, transferOwnership?): voidmodule{Module} the moduleruntime{RuntimeSpec} the runtimeitems{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): voidchunk{Chunk} the chunkitems{Iterable} runtime requirements to be added - Returns: {void}
webpack.ChunkGraph.attachDependentHashModules(chunk, modules): voidchunk{Chunk} the chunkmodules{Iterable} the modules that require a full hash - Returns: {void}
webpack.ChunkGraph.attachFullHashModules(chunk, modules): voidchunk{Chunk} the chunkmodules{Iterable} the modules that require a full hash - Returns: {void}
webpack.ChunkGraph.attachModules(chunk, modules): voidchunk{Chunk} the chunkmodules{Iterable} the modules - Returns: {void}
webpack.ChunkGraph.attachRuntimeModules(chunk, modules): voidchunk{Chunk} the chunkmodules{Iterable} the runtime modules - Returns: {void}
webpack.ChunkGraph.canChunksBeIntegrated(chunkA, chunkB): voidchunkA{Chunk} chunkchunkB{Chunk} chunk- Returns:
<boolean>true, if chunks could be integrated
webpack.ChunkGraph.compareChunks(chunkA, chunkB): voidchunkA{Chunk} first chunkchunkB{Chunk} second chunk- 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): voiddepBlock{AsyncDependenciesBlock} the async blockchunkGroup{ChunkGroup} the chunk group- Returns: {void}
webpack.ChunkGraph.connectChunkAndEntryModule(chunk, module, entrypoint): voidchunk{Chunk} the new chunkmodule{Module} the entry moduleentrypoint{Entrypoint} the chunk group which must be loaded before the module is executed- Returns: {void}
webpack.ChunkGraph.connectChunkAndModule(chunk, module): voidchunk{Chunk} the new chunkmodule{Module} the module- Returns: {void}
webpack.ChunkGraph.connectChunkAndRuntimeModule(chunk, module): voidchunk{Chunk} the new chunkmodule{RuntimeModule} the runtime module- Returns: {void}
webpack.ChunkGraph.disconnectChunk(chunk): voidchunk{Chunk} the chunk which will be disconnected- Returns: {void}
webpack.ChunkGraph.disconnectChunkAndEntryModule(chunk, module): voidchunk{Chunk} the new chunkmodule{Module} the entry module- Returns: {void}
webpack.ChunkGraph.disconnectChunkAndModule(chunk, module): voidchunk{Chunk} the chunkmodule{Module} the module- Returns: {void}
webpack.ChunkGraph.disconnectChunkAndRuntimeModule(chunk, module): voidchunk{Chunk} the new chunkmodule{RuntimeModule} the runtime module- Returns: {void}
webpack.ChunkGraph.disconnectChunkGroup(chunkGroup): voidchunkGroup{ChunkGroup} the chunk group- Returns: {void}
webpack.ChunkGraph.disconnectEntries(chunk): voidchunk{Chunk} the chunk, for which all entries will be removed- Returns: {void}
webpack.ChunkGraph.disconnectEntryModule(module): voidmodule{Module} the entry module, it will no longer be entry- Returns: {void}
webpack.ChunkGraph.getBlockChunkGroup(depBlock): voiddepBlock{AsyncDependenciesBlock} the async block- Returns: {ChunkGroup} the chunk group
webpack.ChunkGraph.getChunkConditionMap(chunk, filterFn): voidchunk{Chunk} the chunkfilterFn<object>function used to filter chunks- Returns: {ChunkConditionMap} chunk condition map
webpack.ChunkGraph.getChunkDependentHashModulesIterable(chunk): voidchunk{Chunk} the chunk- Returns: {Iterable<RuntimeModule, any, any>} iterable of modules (do not modify)
webpack.ChunkGraph.getChunkEntryDependentChunksIterable(chunk): voidchunk{Chunk} the chunk- Returns: {Iterable
} iterable of chunks
webpack.ChunkGraph.getChunkEntryModulesIterable(chunk): voidchunk{Chunk} the chunk- Returns: {Iterable
} iterable of modules (do not modify)
webpack.ChunkGraph.getChunkEntryModulesWithChunkGroupIterable(chunk): voidchunk{Chunk} the chunk- Returns: {Iterable<Tuple<Module, Entrypoint>>} iterable of modules (do not modify)
webpack.ChunkGraph.getChunkFullHashModulesIterable(chunk): voidchunk{Chunk} the chunk- Returns: {Iterable<RuntimeModule, any, any>} iterable of modules (do not modify)
webpack.ChunkGraph.getChunkFullHashModulesSet(chunk): voidchunk{Chunk} the chunk- Returns: {ReadonlySet
} set of modules (do not modify)
webpack.ChunkGraph.getChunkModuleIdMap(chunk, filterFn, includeAllChunks?): voidchunk{Chunk} the chunkfilterFn<object>function used to filter modulesincludeAllChunks<boolean>all chunks or only async chunks- Returns: {ChunkModuleIdMapEs5Alias_2} chunk to module ids object
webpack.ChunkGraph.getChunkModuleRenderedHashMap(chunk, filterFn, hashLength?, includeAllChunks?): voidchunk{Chunk} the chunkfilterFn<object>function used to filter moduleshashLength<number>length of the hashincludeAllChunks<boolean>all chunks or only async chunks- Returns: {ChunkModuleHashMap} chunk to module id to module hash object
webpack.ChunkGraph.getChunkModules(chunk): voidchunk{Chunk} the chunk- Returns: {Module[]} return the modules for this chunk (cached, do not modify)
webpack.ChunkGraph.getChunkModulesIterable(chunk): voidchunk{Chunk} the chunk- Returns: {Iterable
} return the modules for this chunk
webpack.ChunkGraph.getChunkModulesIterableBySourceType(chunk, sourceType): voidchunk{Chunk} the chunksourceType<string>source type- Returns: {Iterable<Module, any, any>} return the modules for this chunk
webpack.ChunkGraph.getChunkModuleSourceTypes(chunk, module): voidchunk{Chunk} chunkmodule{Module} chunk module- Returns: {ReadonlySet
} source types
webpack.ChunkGraph.getChunkModulesSize(chunk): voidchunk{Chunk} the chunk- Returns:
<number>total size of all modules in the chunk
webpack.ChunkGraph.getChunkModulesSizes(chunk): voidchunk{Chunk} the chunk- Returns: {Record<string, number>} total sizes of all modules in the chunk by source type
webpack.ChunkGraph.getChunkRootModules(chunk): voidchunk{Chunk} the chunk- Returns: {Module[]} root modules of the chunks (ordered by identifier)
webpack.ChunkGraph.getChunkRuntimeModulesInOrder(chunk): voidchunk{Chunk} the chunk- Returns: {RuntimeModule[]} array of modules in order of execution
webpack.ChunkGraph.getChunkRuntimeModulesIterable(chunk): voidchunk{Chunk} the chunk- Returns: {Iterable
} iterable of modules (do not modify)
webpack.ChunkGraph.getChunkRuntimeRequirements(chunk): voidchunk{Chunk} the chunk- Returns: {ReadonlySet
} runtime requirements
webpack.ChunkGraph.getChunkSize(chunk, options?): voidchunk{Chunk} the chunkoptions{ChunkSizeOptions} options object- Returns:
<number>total size of the chunk
webpack.ChunkGraph.getIntegratedChunksSize(chunkA, chunkB, options?): voidchunkA{Chunk} chunkchunkB{Chunk} chunkoptions{ChunkSizeOptions} options object- Returns:
<number>total size of the chunk or false if chunks can't be integrated
webpack.ChunkGraph.getModuleChunks(module): voidmodule{Module} the module- Returns: {Chunk[]} array of chunks (cached, do not modify)
webpack.ChunkGraph.getModuleChunksIterable(module): voidmodule{Module} the module- Returns: {Iterable
} iterable of chunks (do not modify)
webpack.ChunkGraph.getModuleGraphHash(module, runtime, withConnections?): voidmodule{Module} the moduleruntime{RuntimeSpec} the runtimewithConnections<boolean>include connections- Returns:
<string>hash
webpack.ChunkGraph.getModuleGraphHashBigInt(module, runtime, withConnections?): voidmodule{Module} the moduleruntime{RuntimeSpec} the runtimewithConnections<boolean>include connections- Returns:
<bigint>hash
webpack.ChunkGraph.getModuleHash(module, runtime): voidmodule{Module} the moduleruntime{RuntimeSpec} the runtime- Returns:
<string>hash
webpack.ChunkGraph.getModuleId(module): voidwebpack.ChunkGraph.getModuleRuntimeRequirements(module, runtime): voidmodule{Module} the moduleruntime{RuntimeSpec} the runtime- Returns: {ReadonlySet
} runtime requirements
webpack.ChunkGraph.getModuleRuntimes(module): voidmodule{Module} the module- Returns: {RuntimeSpecSet} runtimes
webpack.ChunkGraph.getModuleSourceTypes(module): voidmodule{Module} module- Returns: {ReadonlySet
} source types
webpack.ChunkGraph.getNumberOfChunkFullHashModules(chunk): voidchunk{Chunk} the chunk- Returns:
<number>the number of full hash modules which are contained in this chunk
webpack.ChunkGraph.getNumberOfChunkModules(chunk): voidchunk{Chunk} the chunk- Returns:
<number>the number of modules which are contained in this chunk
webpack.ChunkGraph.getNumberOfEntryModules(chunk): voidchunk{Chunk} the chunk- Returns:
<number>the amount of entry modules in chunk
webpack.ChunkGraph.getNumberOfModuleChunks(module): voidmodule{Module} the module- Returns:
<number>the number of chunk which contain the module
webpack.ChunkGraph.getNumberOfRuntimeModules(chunk): voidchunk{Chunk} the chunk- Returns:
<number>the amount of entry modules in chunk
webpack.ChunkGraph.getOrderedChunkModules(chunk, comparator): voidchunk{Chunk} the chunkcomparator<object>comparator function- Returns: {Module[]} return the modules for this chunk (cached, do not modify)
webpack.ChunkGraph.getOrderedChunkModulesIterable(chunk, comparator): voidchunk{Chunk} the chunkcomparator<object>comparator function- Returns: {Iterable
} return the modules for this chunk
webpack.ChunkGraph.getOrderedChunkModulesIterableBySourceType(chunk, sourceType, comparator): voidchunk{Chunk} the chunksourceType<string>source typecomparator<object>comparator function- Returns: {Iterable<Module, any, any>} return the modules for this chunk
webpack.ChunkGraph.getOrderedModuleChunksIterable(module, sortFn): voidmodule{Module} the modulesortFn<object>sort function- Returns: {Iterable
} iterable of chunks (do not modify)
webpack.ChunkGraph.getRenderedModuleHash(module, runtime): voidmodule{Module} the moduleruntime{RuntimeSpec} the runtime- Returns:
<string>hash
webpack.ChunkGraph.getRuntimeChunkDependentChunksIterable(chunk): voidchunk{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): voidchunk{Chunk} the chunk- Returns: {ReadonlySet
} runtime requirements
webpack.ChunkGraph.hasChunkEntryDependentChunks(chunk): voidchunk{Chunk} the chunk- Returns:
<boolean>true, when it has dependent chunks
webpack.ChunkGraph.hasModuleHashes(module, runtime): voidmodule{Module} the moduleruntime{RuntimeSpec} the runtime- Returns:
<boolean>true, if the module has hashes for this runtime
webpack.ChunkGraph.hasModuleInGraph(chunk, filterFn, filterChunkFn?): voidchunk{Chunk} the chunkfilterFn<object>predicate function used to filter modulesfilterChunkFn<object>predicate function used to filter chunks- Returns:
<boolean>return true if module exists in graph
webpack.ChunkGraph.integrateChunks(chunkA, chunkB): voidchunkA{Chunk} the target chunkchunkB{Chunk} the chunk to integrate- Returns: {void}
webpack.ChunkGraph.isEntryModule(module): voidmodule{Module} the checked module- Returns:
<boolean>true, if the module is entry of any chunk
webpack.ChunkGraph.isEntryModuleInChunk(module, chunk): voidmodule{Module} the checked modulechunk{Chunk} the checked chunk- Returns:
<boolean>true, if the chunk contains the module as entry
webpack.ChunkGraph.isModuleInChunk(module, chunk): voidmodule{Module} the checked modulechunk{Chunk} the checked chunk- Returns:
<boolean>true, if the chunk contains the module
webpack.ChunkGraph.isModuleInChunkGroup(module, chunkGroup): voidmodule{Module} the checked modulechunkGroup{ChunkGroup} the checked chunk group- Returns:
<boolean>true, if the chunk contains the module
webpack.ChunkGraph.replaceModule(oldModule, newModule): voidoldModule{Module} the replaced modulenewModule{Module} the replacing module- Returns: {void}
webpack.ChunkGraph.setChunkModuleSourceTypes(chunk, module, sourceTypes): voidchunk{Chunk} chunkmodule{Module} chunk modulesourceTypes{ReadonlySet} source types - Returns: {void}
webpack.ChunkGraph.setModuleHashes(module, runtime, hash, renderedHash): voidmodule{Module} the moduleruntime{RuntimeSpec} the runtimehash<string>the full hashrenderedHash<string>the shortened hash for rendering- Returns: {void}
webpack.ChunkGraph.setModuleId(module, id): voidmodule{Module} the moduleid{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): voidchunk{Chunk} the chunk to upgrade- Returns: {void}
webpack.ChunkGraph.clearChunkGraphForChunk(chunk): voidchunk{Chunk} the chunk- Returns: {void}
webpack.ChunkGraph.clearChunkGraphForModule(module): voidmodule{Module} the module- Returns: {void}
webpack.ChunkGraph.getChunkGraphForChunk(chunk, deprecateMessage, deprecationCode): voidchunk{Chunk} the chunkdeprecateMessage<string>message for the deprecation messagedeprecationCode<string>code for the deprecation- Returns: {ChunkGraph} the chunk graph
webpack.ChunkGraph.getChunkGraphForModule(module, deprecateMessage, deprecationCode): voidmodule{Module} the moduledeprecateMessage<string>message for the deprecation messagedeprecationCode<string>code for the deprecation- Returns: {ChunkGraph} the chunk graph
webpack.ChunkGraph.setChunkGraphForChunk(chunk, chunkGraph): voidchunk{Chunk} the chunkchunkGraph{ChunkGraph} the chunk graph- Returns: {void}
webpack.ChunkGraph.setChunkGraphForModule(module, chunkGraph): voidmodule{Module} the modulechunkGraph{ChunkGraph} the chunk graph- Returns: {void}