class webpack.HotUpdateChunk extends ChunkA Chunk is a unit of encapsulation for Modules. Chunks are "rendered" into bundles that get emitted when the build completes.
new HotUpdateChunk(): HotUpdateChunkHotUpdateChunkstringstring | ((pathData: PathDataChunk, assetInfo?: AssetInfo) => string)numberModulebooleanstring | ((pathData: PathDataChunk, assetInfo?: AssetInfo) => string)SortableSet<ChunkGroup>stringSortableSet<string>ChunkId[] | nullstring | nullbooleanbooleanstringRuntimeSpecaddGroup(chunkGroup): voidChunkGroupvoidAdds the provided chunk group to the chunk.
addModule(module): booleanAdds the provided module to the chunk.
canBeInitial(): booleanbooleanChecks whether it can be initial.
canBeIntegrated(otherChunk): booleanChecks whether this chunk can be integrated with another chunk.
compareTo(otherChunk): -1 | 0 | 1Chunk-1 | 0 | 1Compares this chunk with another chunk.
containsModule(module): booleanChecks whether this chunk contains the module.
disconnectFromGroups(): voidvoidDisconnects from groups.
getAllAsyncChunks(): Set<Chunk>Gets all async chunks.
getAllInitialChunks(): Set<Chunk>Gets all initial chunks.
getAllReferencedAsyncEntrypoints(): Set<Entrypoint>Set<Entrypoint>Gets all referenced async entrypoints.
getAllReferencedChunks(): Set<Chunk>Gets all referenced chunks.
getChildIdsByOrders(chunkGraph, filterFn?): Record<string, ChunkId[]>ChunkGraph(c: Chunk, chunkGraph: ChunkGraph) => booleanGets child ids by orders.
getChildIdsByOrdersMap(chunkGraph, includeDirectChildren?, filterFn?): ChunkChildIdsByOrdersMapByDataChunkGraphboolean(c: Chunk, chunkGraph: ChunkGraph) => booleanChunkChildIdsByOrdersMapByDataGets child ids by orders map.
getChildrenOfTypeInOrder(chunkGraph, type): ChunkChildOfTypeInOrder[] | undefinedGets children of type in order.
getChunkMaps(realHash): ChunkMapsReturns the chunk map information.
getChunkModuleMaps(filterFn): ChunkModuleMapsChunkModuleMapsGets chunk module maps.
getEntryOptions(): EntryOptions | undefinedEntryOptions | undefinedGets entry options.
getModules(): Module[]Module[]Returns the modules for this chunk.
getNumberOfGroups(): numbernumberGets number of groups.
getNumberOfModules(): numbernumberGets the number of modules in this chunk.
hasAsyncChunks(): booleanbooleanChecks whether this chunk has async chunks.
hasChildByOrder(chunkGraph, type, includeDirectChildren?, filterFn?): booleanChunkGraphstringboolean(c: Chunk, chunkGraph: ChunkGraph) => booleanbooleanChecks whether this chunk contains the chunk graph.
hasEntryModule(): booleanbooleanChecks whether this chunk has an entry module.
hasModuleInGraph(filterFn, filterChunkFn?): booleanChecks whether this chunk contains a matching module in the graph.
hasRuntime(): booleanbooleanChecks whether this chunk has runtime.
integrate(otherChunk): booleanIntegrates another chunk into this chunk when possible.
integratedSize(otherChunk, options): numberReturns the integrated size with another chunk.
isEmpty(): booleanbooleanChecks whether this chunk is empty.
isInGroup(chunkGroup): booleanChunkGroupbooleanChecks whether this chunk is in group.
isOnlyInitial(): booleanbooleanChecks whether this chunk is only initial.
modulesSize(): numbernumberReturns the total size of all modules in this chunk.
moveModule(module, otherChunk): voidMoves a module from this chunk to another chunk.
remove(): voidvoidRemoves this chunk from the chunk graph and chunk groups.
removeGroup(chunkGroup): voidChunkGroupvoidRemoves the provided chunk group from the chunk.
removeModule(module): voidRemoves the provided module from the chunk.
size
size(options?): numberChunkSizeOptionsnumberReturns the estimated size for the requested source type.
split(newChunk): voidProcesses the provided new chunk.
updateHash(hash, chunkGraph): voidUpdates the hash with the data contributed by this instance.