On this page

Attributes
new HotUpdateChunk(): HotUpdateChunk
Attributes
auxiliaryFiles:<Set>
chunkReason:<string>
contentHash:
<Record> < <string> , <string> >
cssFilenameTemplate:<string> | <object>
debugId:<number>
entryModule:<Module>
Returns entry module.
extraAsync:<boolean>
filenameTemplate:<string> | <object>
files:<Set>
groupsIterable:
<SortableSet> < <ChunkGroup> > Gets groups iterable.
idNameHints:
<SortableSet> < <string> >
modulesIterable:
<Iterable> < <Module> >
preventIntegration:<boolean>
rendered:<boolean>
renderedHash:<string>
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
Returns:<Set>

Gets all async chunks.


getAllInitialChunks(): Set
Returns:<Set>

Gets all initial chunks.


getAllReferencedAsyncEntrypoints(): Set
Returns:<Set>

Gets all referenced async entrypoints.


getAllReferencedChunks(): Set
Returns:<Set>

Gets all referenced chunks.


getChildIdsByOrders(chunkGraph, filterFn?): Record
Attributes
chunkGraph:<ChunkGraph>
filterFn:<object>
Returns:
<Record> < <string> , <ChunkId> []>

Gets child ids by orders.


getChildIdsByOrdersMap(chunkGraph, includeDirectChildren?, filterFn?): ChunkChildIdsByOrdersMapByData
Attributes
chunkGraph:<ChunkGraph>
includeDirectChildren:<boolean>
filterFn:<object>

Gets child ids by orders map.


getChildrenOfTypeInOrder(chunkGraph, type): ChunkChildOfTypeInOrder
Attributes
chunkGraph:<ChunkGraph>

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:<object>

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>
includeDirectChildren:<boolean>
filterFn:<object>
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:<object>
filterChunkFn:<object>
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.