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(): HotUpdateChunk<HotUpdateChunk>auxiliaryFiles{Set} chunkReason<string>contentHash<Record><<string>,<string>>cssFilenameTemplate<string>| (pathData:<PathDataChunk>, assetInfo?:<AssetInfo>) =><string>debugId<number>Defines the chunk module maps type used by this module.entryModule<Module>Returns entry module.extraAsync<boolean>filenameTemplate<string>| (pathData:<PathDataChunk>, assetInfo?:<AssetInfo>) =><string>files{Set} groupsIterable{SortableSet} Gets groups iterable. hash<string>id<string>|<number>|<null>idNameHints{SortableSet} ids<ChunkId>[] |<null>modulesIterable{Iterable} name<string>|<null>preventIntegration<boolean>rendered<boolean>renderedHash<string>runtime<RuntimeSpec>
addGroup(chunkGroup): void<ChunkGroup><void>Adds the provided chunk group to the chunk.
addModule(module): booleanAdds the provided module to the chunk.
canBeInitial(): boolean<boolean>Checks whether it can be initial.
canBeIntegrated(otherChunk): booleanChecks whether this chunk can be integrated with another chunk.
compareTo(otherChunk): -1 | 0 | 1<Chunk><-1>
|
<0>
|
<1>Compares this chunk with another chunk.
containsModule(module): booleanChecks whether this chunk contains the module.
disconnectFromGroups(): void<void>Disconnects from groups.
getAllAsyncChunks(): Set<Chunk>Gets all async chunks.
getAllInitialChunks(): Set<Chunk>Gets all initial chunks.
getAllReferencedAsyncEntrypoints(): Set<Entrypoint>Gets all referenced async entrypoints.
getAllReferencedChunks(): Set<Chunk>Gets all referenced chunks.
getChildIdsByOrders(chunkGraph, filterFn?): Record<ChunkGraph>Gets child ids by orders.
getChildIdsByOrdersMap(chunkGraph, includeDirectChildren?, filterFn?): ChunkChildIdsByOrdersMapByData<ChunkGraph><boolean><ChunkChildIdsByOrdersMapByData>Gets child ids by orders map.
getChildrenOfTypeInOrder(chunkGraph, type): ChunkChildOfTypeInOrderGets children of type in order.
getChunkMaps(realHash): ChunkMaps<boolean><ChunkMaps>Returns the chunk map information.
getChunkModuleMaps(filterFn): voidfilterFn(m:<Module>) =><boolean>- Returns:
<ChunkModuleMaps>
Gets chunk module maps.
getEntryOptions(): EntryOptions | undefined<EntryOptions>
|
<undefined>Gets entry options.
getModules(): Module<Module>Returns the modules for this chunk.
getNumberOfGroups(): number<number>Gets number of groups.
getNumberOfModules(): number<number>Gets the number of modules in this chunk.
hasAsyncChunks(): boolean<boolean>Checks whether this chunk has async chunks.
hasChildByOrder(chunkGraph, type, includeDirectChildren?, filterFn?): booleanChecks whether this chunk contains the chunk graph.
hasEntryModule(): boolean<boolean>Checks whether this chunk has an entry module.
hasModuleInGraph(filterFn, filterChunkFn?): voidfilterFn(m:<Module>) =><boolean>filterChunkFn(c:<Chunk>, chunkGraph:<ChunkGraph>) =><boolean>- Returns:
<boolean>
Checks whether this chunk contains a matching module in the graph.
hasRuntime(): boolean<boolean>Checks 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(): boolean<boolean>Checks whether this chunk is empty.
isInGroup(chunkGroup): boolean<ChunkGroup><boolean>Checks whether this chunk is in group.
isOnlyInitial(): boolean<boolean>Checks whether this chunk is only initial.
modulesSize(): number<number>Returns the total size of all modules in this chunk.
moveModule(module, otherChunk): voidMoves a module from this chunk to another chunk.
remove(): void<void>Removes this chunk from the chunk graph and chunk groups.
removeGroup(chunkGroup): void<ChunkGroup><void>Removes the provided chunk group from the chunk.
removeModule(module): voidRemoves the provided module from the chunk.
size
size(options?): number<ChunkSizeOptions><number>Returns 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.