On this page

class webpack.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
Attributes
auxiliaryFiles:Set<string>
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<string>
groupsIterable:SortableSet<ChunkGroup>
Gets groups iterable.
hash:string
id:string | number | null
idNameHints:SortableSet<string>
ids:ChunkId[] | null
modulesIterable:Iterable<Module>
name:string | null
preventIntegration:boolean
rendered:boolean
renderedHash:string
runtime:RuntimeSpec
addGroup(chunkGroup): void
Attributes
chunkGroup:ChunkGroup
Returns:void

Adds the provided chunk group to the chunk.


addModule(module): boolean
Stability: 0Deprecated
Attributes
module:Module
Returns:boolean

Adds the provided module to the chunk.


canBeInitial(): boolean
Returns:boolean

Checks whether it can be initial.


canBeIntegrated(otherChunk): boolean
Stability: 0Deprecated
Attributes
otherChunk:Chunk
Returns:boolean

Checks whether this chunk can be integrated with another chunk.


compareTo(otherChunk): -1 | 0 | 1
Stability: 0Deprecated
Attributes
otherChunk:Chunk
Returns:-1 | 0 | 1

Compares this chunk with another chunk.


containsModule(module): boolean
Stability: 0Deprecated
Attributes
module:Module
Returns:boolean

Checks whether this chunk contains the module.


disconnectFromGroups(): void
Returns:void

Disconnects from groups.


getAllAsyncChunks(): Set<Chunk>
Returns:Set<Chunk>

Gets all async chunks.


getAllInitialChunks(): Set<Chunk>
Returns:Set<Chunk>

Gets all initial chunks.


getAllReferencedAsyncEntrypoints(): Set<Entrypoint>
Returns:Set<Entrypoint>

Gets all referenced async entrypoints.


getAllReferencedChunks(): Set<Chunk>
Returns:Set<Chunk>

Gets all referenced chunks.


getChildIdsByOrders(chunkGraph, filterFn?): Record<string, ChunkId[]>
Attributes
chunkGraph:ChunkGraph
filterFn:(c: Chunk, chunkGraph: ChunkGraph) => boolean
Returns:Record<string, ChunkId[]>

Gets child ids by orders.


getChildIdsByOrdersMap(chunkGraph, includeDirectChildren?, filterFn?): ChunkChildIdsByOrdersMapByData
Attributes
chunkGraph:ChunkGraph
includeDirectChildren:boolean
filterFn:(c: Chunk, chunkGraph: ChunkGraph) => boolean

Gets child ids by orders map.


getChildrenOfTypeInOrder(chunkGraph, type): ChunkChildOfTypeInOrder[] | undefined
Attributes

Gets children of type in order.


getChunkMaps(realHash): ChunkMaps
Stability: 0Deprecated
Attributes
realHash:boolean
Returns:ChunkMaps

Returns the chunk map information.


getChunkModuleMaps(filterFn): ChunkModuleMaps
Stability: 0Deprecated
Attributes
filterFn:(m: Module) => boolean

Gets chunk module maps.


getEntryOptions(): EntryOptions | undefined

Gets entry options.


getModules(): Module[]
Stability: 0Deprecated
Returns:Module[]

Returns the modules for this chunk.


getNumberOfGroups(): number
Returns:number

Gets number of groups.


getNumberOfModules(): number
Stability: 0Deprecated
Returns:number

Gets the number of modules in this chunk.


hasAsyncChunks(): boolean
Returns:boolean

Checks whether this chunk has async chunks.


hasChildByOrder(chunkGraph, type, includeDirectChildren?, filterFn?): boolean
Attributes
chunkGraph:ChunkGraph
type:string
includeDirectChildren:boolean
filterFn:(c: Chunk, chunkGraph: ChunkGraph) => boolean
Returns:boolean

Checks whether this chunk contains the chunk graph.


hasEntryModule(): boolean
Stability: 0Deprecated
Returns:boolean

Checks whether this chunk has an entry module.


hasModuleInGraph(filterFn, filterChunkFn?): boolean
Stability: 0Deprecated
Attributes
filterFn:(m: Module) => boolean
filterChunkFn:(c: Chunk, chunkGraph: ChunkGraph) => boolean
Returns:boolean

Checks whether this chunk contains a matching module in the graph.


hasRuntime(): boolean
Returns:boolean

Checks whether this chunk has runtime.


integrate(otherChunk): boolean
Stability: 0Deprecated
Attributes
otherChunk:Chunk
Returns:boolean

Integrates another chunk into this chunk when possible.


integratedSize(otherChunk, options): number
Stability: 0Deprecated
Attributes
otherChunk:Chunk
Returns:number

Returns the integrated size with another chunk.


isEmpty(): boolean
Stability: 0Deprecated
Returns:boolean

Checks whether this chunk is empty.


isInGroup(chunkGroup): boolean
Attributes
chunkGroup:ChunkGroup
Returns:boolean

Checks whether this chunk is in group.


isOnlyInitial(): boolean
Returns:boolean

Checks whether this chunk is only initial.


modulesSize(): number
Stability: 0Deprecated
Returns:number

Returns the total size of all modules in this chunk.


moveModule(module, otherChunk): void
Stability: 0Deprecated
Attributes
module:Module
otherChunk:Chunk
Returns:void

Moves a module from this chunk to another chunk.


remove(): void
Stability: 0Deprecated
Returns:void

Removes this chunk from the chunk graph and chunk groups.


removeGroup(chunkGroup): void
Attributes
chunkGroup:ChunkGroup
Returns:void

Removes the provided chunk group from the chunk.


removeModule(module): void
Stability: 0Deprecated
Attributes
module:Module
Returns:void

Removes the provided module from the chunk.


size(options?): number
Stability: 0Deprecated
Attributes
Returns:number

Returns the estimated size for the requested source type.


split(newChunk): void
Attributes
newChunk:Chunk
Returns:void

Processes the provided new chunk.


updateHash(hash, chunkGraph): void
Attributes
hash:Hash
chunkGraph:ChunkGraph
Returns:void

Updates the hash with the data contributed by this instance.