class HotUpdateChunk extends Chunk
A Chunk is a unit of encapsulation for Modules. Chunks are "rendered" into bundles that get emitted when the build completes.
new HotUpdateChunk(): HotUpdateChunk
HotUpdateChunkstringstring | ((pathData: PathDataChunk, assetInfo?: AssetInfo) => string)numberbooleanstring | ((pathData: PathDataChunk, assetInfo?: AssetInfo) => string)stringSortableSet<string>booleanbooleanstringRuntimeSpecModuleReturns entry module.
Source Code: lib/Chunk.js#L597SortableSet<ChunkGroup>Gets groups iterable.
Source Code: lib/Chunk.js#L225hotUpdateChunk.addGroup(chunkGroup): void
ChunkGroupAdds the provided chunk group to the chunk.
hotUpdateChunk.addModule(module): boolean
Adds the provided module to the chunk.
hotUpdateChunk.canBeInitial(): boolean
booleanChecks whether it can be initial.
hotUpdateChunk.canBeIntegrated(otherChunk): boolean
Checks whether this chunk can be integrated with another chunk.
hotUpdateChunk.compareTo(otherChunk): -1 | 0 | 1
Chunk-1 | 0 | 1Compares this chunk with another chunk.
hotUpdateChunk.containsModule(module): boolean
Checks whether this chunk contains the module.
hotUpdateChunk.disconnectFromGroups(): void
Disconnects from groups.
hotUpdateChunk.getAllAsyncChunks(): Set<Chunk>
Gets all async chunks.
hotUpdateChunk.getAllInitialChunks(): Set<Chunk>
Gets all initial chunks.
hotUpdateChunk.getAllReferencedAsyncEntrypoints(): Set<Entrypoint>
Set<Entrypoint>Gets all referenced async entrypoints.
hotUpdateChunk.getAllReferencedChunks(): Set<Chunk>
Gets all referenced chunks.
hotUpdateChunk.getChildIdsByOrders(chunkGraph, filterFn?): Record<string, ChunkId[]>
ChunkGraph(c: Chunk, chunkGraph: ChunkGraph) => booleanGets child ids by orders.
hotUpdateChunk.getChildIdsByOrdersMap(chunkGraph, includeDirectChildren?, filterFn?): ChunkChildIdsByOrdersMapByData
ChunkGraphboolean(c: Chunk, chunkGraph: ChunkGraph) => booleanChunkChildIdsByOrdersMapByDataGets child ids by orders map.
hotUpdateChunk.getChildrenOfTypeInOrder(chunkGraph, type): ChunkChildOfTypeInOrder[] | undefined
Gets children of type in order.
hotUpdateChunk.getChunkMaps(realHash): ChunkMaps
Returns the chunk map information.
hotUpdateChunk.getChunkModuleMaps(filterFn): ChunkModuleMaps
ChunkModuleMapsGets chunk module maps.
hotUpdateChunk.getEntryOptions(): EntryOptions | undefined
EntryOptions | undefinedGets entry options.
hotUpdateChunk.getModules(): Module[]
Module[]Returns the modules for this chunk.
hotUpdateChunk.getNumberOfGroups(): number
numberGets number of groups.
hotUpdateChunk.getNumberOfModules(): number
numberGets the number of modules in this chunk.
hotUpdateChunk.hasAsyncChunks(): boolean
booleanChecks whether this chunk has async chunks.
hotUpdateChunk.hasChildByOrder(chunkGraph, type, includeDirectChildren?, filterFn?): boolean
ChunkGraphstringboolean(c: Chunk, chunkGraph: ChunkGraph) => booleanbooleanChecks whether this chunk contains the chunk graph.
hotUpdateChunk.hasEntryModule(): boolean
booleanChecks whether this chunk has an entry module.
hotUpdateChunk.hasModuleInGraph(filterFn, filterChunkFn?): boolean
Checks whether this chunk contains a matching module in the graph.
hotUpdateChunk.hasRuntime(): boolean
booleanChecks whether this chunk has runtime.
hotUpdateChunk.integrate(otherChunk): boolean
Integrates another chunk into this chunk when possible.
hotUpdateChunk.integratedSize(otherChunk, options): number
Returns the integrated size with another chunk.
hotUpdateChunk.isEmpty(): boolean
booleanChecks whether this chunk is empty.
hotUpdateChunk.isInGroup(chunkGroup): boolean
ChunkGroupbooleanChecks whether this chunk is in group.
hotUpdateChunk.isOnlyInitial(): boolean
booleanChecks whether this chunk is only initial.
hotUpdateChunk.modulesSize(): number
numberReturns the total size of all modules in this chunk.
hotUpdateChunk.moveModule(module, otherChunk): void
Moves a module from this chunk to another chunk.
hotUpdateChunk.remove(): void
Removes this chunk from the chunk graph and chunk groups.
hotUpdateChunk.removeGroup(chunkGroup): void
ChunkGroupRemoves the provided chunk group from the chunk.
hotUpdateChunk.removeModule(module): void
ModuleRemoves the provided module from the chunk.
hotUpdateChunk.size(options?): number
ChunkSizeOptionsnumberReturns the estimated size for the requested source type.
hotUpdateChunk.split(newChunk): void
ChunkProcesses the provided new chunk.
hotUpdateChunk.updateHash(hash, chunkGraph): void
HashChunkGraphUpdates the hash with the data contributed by this instance.