new Chunk(name?, backCompat?): Chunk<Chunk>Creates an instance of Chunk.
auxiliaryFiles{Set< string >}chunkReason<string>contentHash{Record< string, string >}cssFilenameTemplate<string>|<object>debugId<number>entryModule<Module>Returns entry module.extraAsync<boolean>filenameTemplate<string>|<object>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<ChunkGroup>Adds the provided chunk group to the chunk.
addModule(module): boolean<Module><boolean>Adds the provided module to the chunk.
canBeInitial(): boolean<boolean>Checks whether it can be initial.
canBeIntegrated(otherChunk): boolean<Chunk><boolean>Checks whether this chunk can be integrated with another chunk.
compareTo(otherChunk): -1 | 0 | 1<Chunk>Compares this chunk with another chunk.
containsModule(module): boolean<Module><boolean>Checks whether this chunk contains the module.
disconnectFromGroups(): voidDisconnects 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< string, ChunkId[] ><ChunkGraph><object>Gets child ids by orders.
getChildIdsByOrdersMap(chunkGraph, includeDirectChildren?, filterFn?): ChunkChildIdsByOrdersMapByData<ChunkChildIdsByOrdersMapByData>Gets child ids by orders map.
getChildrenOfTypeInOrder(chunkGraph, type): ChunkChildOfTypeInOrder[] | undefined<ChunkGraph><string><ChunkChildOfTypeInOrder[]>
|
<undefined>Gets children of type in order.
getChunkMaps(realHash): ChunkMaps<boolean><ChunkMaps>Returns the chunk map information.
getChunkModuleMaps(filterFn): ChunkModuleMaps<object><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?): boolean<boolean>Checks whether this chunk contains the chunk graph.
hasEntryModule(): boolean<boolean>Checks whether this chunk has an entry module.
hasModuleInGraph(filterFn, filterChunkFn?): boolean<boolean>Checks whether this chunk contains a matching module in the graph.
hasRuntime(): boolean<boolean>Checks whether this chunk has runtime.
integrate(otherChunk): boolean<Chunk><boolean>Integrates another chunk into this chunk when possible.
integratedSize(otherChunk, options): number<Chunk><ChunkSizeOptions><number>Returns 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(): voidRemoves this chunk from the chunk graph and chunk groups.
removeGroup(chunkGroup): void<ChunkGroup>Removes the provided chunk group from the chunk.
removeModule(module): void<Module>Removes the provided module from the chunk.
size
size(options?): number<ChunkSizeOptions><number>Returns the estimated size for the requested source type.
split(newChunk): void<Chunk>Processes the provided new chunk.
updateHash(hash, chunkGraph): void<Hash><ChunkGraph>Updates the hash with the data contributed by this instance.