On this page

class HotUpdateChunk extends Chunk
Source Code: lib/HotUpdateChunk.js#L10

A Chunk is a unit of encapsulation for Modules. Chunks are "rendered" into bundles that get emitted when the build completes.

new HotUpdateChunk(): HotUpdateChunk
Source Code: lib/HotUpdateChunk.js#L11
Source Code: lib/Chunk.js#L117
Type:Set<string>
Source Code: lib/Chunk.js#L131
Type:string
Source Code: lib/Chunk.js#L123
Type:Record<string, string>
Source Code: lib/Chunk.js#L127
Type:Record<string, string>
Source Code: lib/Chunk.js#L106
Type:string | ((pathData: PathDataChunk, assetInfo?: AssetInfo) => string)
Source Code: lib/Chunk.js#L96
Type:number
Source Code: lib/Chunk.js#L133
Type:boolean
Source Code: lib/Chunk.js#L104
Type:string | ((pathData: PathDataChunk, assetInfo?: AssetInfo) => string)
Source Code: lib/Chunk.js#L115
Type:Set<string>
Source Code: lib/Chunk.js#L121
Type:string
Source Code: lib/Chunk.js#L92
Type:string | number | null
Source Code: lib/Chunk.js#L100
Source Code: lib/Chunk.js#L94
Type:ChunkId[] | null
Source Code: lib/Chunk.js#L98
Type:string | null
Source Code: lib/Chunk.js#L102
Type:boolean
Source Code: lib/Chunk.js#L119
Type:boolean
Source Code: lib/Chunk.js#L129
Type:string
Source Code: lib/Chunk.js#L113
Source Code: lib/Chunk.js#L143
Stability: 0Deprecated
Type:Module

Returns entry module.

Source Code: lib/Chunk.js#L597

Gets groups iterable.

Source Code: lib/Chunk.js#L225
Stability: 0Deprecated
hotUpdateChunk.addGroup(chunkGroup): void
Source Code: lib/Chunk.js#L563
Attributes
chunkGroup:ChunkGroup

Adds the provided chunk group to the chunk.

hotUpdateChunk.addModule(module): boolean
Source Code: lib/Chunk.js#L183
Stability: 0Deprecated
Attributes
module:Module
Returns:boolean

Adds the provided module to the chunk.

hotUpdateChunk.canBeInitial(): boolean
Source Code: lib/Chunk.js#L526
Returns:boolean

Checks whether it can be initial.

hotUpdateChunk.canBeIntegrated(otherChunk): boolean
Source Code: lib/Chunk.js#L337
Stability: 0Deprecated
Attributes
otherChunk:Chunk
Returns:boolean

Checks whether this chunk can be integrated with another chunk.

hotUpdateChunk.compareTo(otherChunk): -1 | 0 | 1
Source Code: lib/Chunk.js#L243
Stability: 0Deprecated
Attributes
otherChunk:Chunk
Returns:-1 | 0 | 1

Compares this chunk with another chunk.

hotUpdateChunk.containsModule(module): boolean
Source Code: lib/Chunk.js#L258
Stability: 0Deprecated
Attributes
module:Module
Returns:boolean

Checks whether this chunk contains the module.

hotUpdateChunk.disconnectFromGroups(): void
Source Code: lib/Chunk.js#L606

Disconnects from groups.

hotUpdateChunk.getAllAsyncChunks(): Set<Chunk>
Source Code: lib/Chunk.js#L658
Returns:Set<Chunk>

Gets all async chunks.

hotUpdateChunk.getAllInitialChunks(): Set<Chunk>
Source Code: lib/Chunk.js#L699
Returns:Set<Chunk>

Gets all initial chunks.

hotUpdateChunk.getAllReferencedAsyncEntrypoints(): Set<Entrypoint>
Source Code: lib/Chunk.js#L739
Returns:Set<Entrypoint>

Gets all referenced async entrypoints.

hotUpdateChunk.getAllReferencedChunks(): Set<Chunk>
Source Code: lib/Chunk.js#L717
Returns:Set<Chunk>

Gets all referenced chunks.

hotUpdateChunk.getChildIdsByOrders(chunkGraph, filterFn?): Record<string, ChunkId[]>
Source Code: lib/Chunk.js#L795
Attributes
chunkGraph:ChunkGraph
filterFn:(c: Chunk, chunkGraph: ChunkGraph) => boolean
Returns:Record<string, ChunkId[]>

Gets child ids by orders.

hotUpdateChunk.getChildIdsByOrdersMap(chunkGraph, includeDirectChildren?, filterFn?): ChunkChildIdsByOrdersMapByData
Source Code: lib/Chunk.js#L898
Attributes
chunkGraph:ChunkGraph
includeDirectChildren:boolean
filterFn:(c: Chunk, chunkGraph: ChunkGraph) => boolean

Gets child ids by orders map.

hotUpdateChunk.getChildrenOfTypeInOrder(chunkGraph, type): ChunkChildOfTypeInOrder[] | undefined
Source Code: lib/Chunk.js#L849
Attributes

Gets children of type in order.

hotUpdateChunk.getChunkMaps(realHash): ChunkMaps
Source Code: lib/Chunk.js#L474
Stability: 0Deprecated
Attributes
realHash:boolean
Returns:ChunkMaps

Returns the chunk map information.

hotUpdateChunk.getChunkModuleMaps(filterFn): ChunkModuleMaps
Source Code: lib/Chunk.js#L411
Stability: 0Deprecated
Attributes
filterFn:(m: Module) => boolean

Gets chunk module maps.

hotUpdateChunk.getEntryOptions(): EntryOptions | undefined
Source Code: lib/Chunk.js#L549

Gets entry options.

hotUpdateChunk.getModules(): Module[]
Source Code: lib/Chunk.js#L271
Stability: 0Deprecated
Returns:Module[]

Returns the modules for this chunk.

hotUpdateChunk.getNumberOfGroups(): number
Source Code: lib/Chunk.js#L589
Returns:number

Gets number of groups.

hotUpdateChunk.getNumberOfModules(): number
Source Code: lib/Chunk.js#L213
Stability: 0Deprecated
Returns:number

Gets the number of modules in this chunk.

hotUpdateChunk.hasAsyncChunks(): boolean
Source Code: lib/Chunk.js#L761
Returns:boolean

Checks whether this chunk has async chunks.

hotUpdateChunk.hasChildByOrder(chunkGraph, type, includeDirectChildren?, filterFn?): boolean
Source Code: lib/Chunk.js#L946
Attributes
chunkGraph:ChunkGraph
type:string
includeDirectChildren:boolean
filterFn:(c: Chunk, chunkGraph: ChunkGraph) => boolean
Returns:boolean

Checks whether this chunk contains the chunk graph.

hotUpdateChunk.hasEntryModule(): boolean
Source Code: lib/Chunk.js#L167
Stability: 0Deprecated
Returns:boolean

Checks whether this chunk has an entry module.

hotUpdateChunk.hasModuleInGraph(filterFn, filterChunkFn?): boolean
Source Code: lib/Chunk.js#L459
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.

hotUpdateChunk.hasRuntime(): boolean
Source Code: lib/Chunk.js#L510
Returns:boolean

Checks whether this chunk has runtime.

hotUpdateChunk.integrate(otherChunk): boolean
Source Code: lib/Chunk.js#L317
Stability: 0Deprecated
Attributes
otherChunk:Chunk
Returns:boolean

Integrates another chunk into this chunk when possible.

hotUpdateChunk.integratedSize(otherChunk, options): number
Source Code: lib/Chunk.js#L396
Stability: 0Deprecated
Attributes
otherChunk:Chunk
Returns:number

Returns the integrated size with another chunk.

hotUpdateChunk.isEmpty(): boolean
Source Code: lib/Chunk.js#L351
Stability: 0Deprecated
Returns:boolean

Checks whether this chunk is empty.

hotUpdateChunk.isInGroup(chunkGroup): boolean
Source Code: lib/Chunk.js#L581
Attributes
chunkGroup:ChunkGroup
Returns:boolean

Checks whether this chunk is in group.

hotUpdateChunk.isOnlyInitial(): boolean
Source Code: lib/Chunk.js#L537
Returns:boolean

Checks whether this chunk is only initial.

hotUpdateChunk.modulesSize(): number
Source Code: lib/Chunk.js#L365
Stability: 0Deprecated
Returns:number

Returns the total size of all modules in this chunk.

hotUpdateChunk.moveModule(module, otherChunk): void
Source Code: lib/Chunk.js#L301
Stability: 0Deprecated
Attributes
module:Module
otherChunk:Chunk

Moves a module from this chunk to another chunk.

hotUpdateChunk.remove(): void
Source Code: lib/Chunk.js#L284
Stability: 0Deprecated

Removes this chunk from the chunk graph and chunk groups.

hotUpdateChunk.removeGroup(chunkGroup): void
Source Code: lib/Chunk.js#L572
Attributes
chunkGroup:ChunkGroup

Removes the provided chunk group from the chunk.

hotUpdateChunk.removeModule(module): void
Source Code: lib/Chunk.js#L200
Stability: 0Deprecated
Attributes
module:Module

Removes the provided module from the chunk.

hotUpdateChunk.size(options?): number
Source Code: lib/Chunk.js#L380
Stability: 0Deprecated
Attributes
Returns:number

Returns the estimated size for the requested source type.

hotUpdateChunk.split(newChunk): void
Source Code: lib/Chunk.js#L617
Attributes
newChunk:Chunk

Processes the provided new chunk.

hotUpdateChunk.updateHash(hash, chunkGraph): void
Source Code: lib/Chunk.js#L634
Attributes
hash:Hash
chunkGraph:ChunkGraph

Updates the hash with the data contributed by this instance.