new Entrypoint(): Entrypoint<Entrypoint>asyncEntrypointsIterable{SortableSet} blocksIterable{Iterable} childrenIterable{SortableSet} chunks<Chunk[]>debugId<string>get a uniqueId for ChunkGroup, made up of its member Chunk debugId'sgetModuleIndex<object>getModuleIndex2<object>groupDebugId<number>id<string>get a unique id for ChunkGroup, made up of its member Chunk id'sindex<number>name<string>|<null>returns the name of current ChunkGroup sets a new name for current ChunkGroupoptions{ChunkGroupOptions}origins{OriginRecord[]}parentsIterable{SortableSet}
addAsyncEntrypoint(entrypoint): boolean<Entrypoint><boolean>addBlock(block): boolean<AsyncDependenciesBlock><boolean>addChild(group): boolean<ChunkGroup><boolean>addDependOn(entrypoint): void<Entrypoint>addOptions(options): voidoptions{ChunkGroupOptions}- Returns: {void}
when a new chunk is added to a chunkGroup, addingOptions will occur.
addOrigin(module, loc, request): voidaddParent(parentChunk): boolean<ChunkGroup><boolean>checkConstraints(): voidcompareTo(chunkGraph, otherGroup): -1 | 0 | 1<ChunkGraph><ChunkGroup>Sorting predicate which allows current ChunkGroup to be compared against another. Sorting values are based off of number of chunks in ChunkGroup.
dependOn(entrypoint): boolean<Entrypoint><boolean>getBlocks(): AsyncDependenciesBlock[]<AsyncDependenciesBlock[]>getChildren(): ChunkGroup[]<ChunkGroup[]>getChildrenByOrders(moduleGraph, chunkGraph): Record<string, ChunkGroup[]><ModuleGraph><ChunkGraph>getEntrypointChunk(): Chunk<Chunk>Returns the chunk which contains the entrypoint modules (or at least the execution of them)
getFiles(): string[]<string[]>getModulePostOrderIndex(module): number | undefined<Module><number>
|
<undefined>Gets the bottom-up index of a module in this ChunkGroup
getModulePreOrderIndex(module): number | undefined<Module><number>
|
<undefined>Gets the top-down index of a module in this ChunkGroup
getNumberOfBlocks(): number<number>getNumberOfChildren(): number<number>getNumberOfParents(): number<number>getParents(): ChunkGroup[]<ChunkGroup[]>getRuntimeChunk(): Chunk | nullFetches the chunk reference containing the webpack bootstrap code
hasBlock(block): boolean<AsyncDependenciesBlock><boolean>hasParent(parent): boolean<ChunkGroup><boolean>insertChunk(chunk, before): boolean<boolean>inserts a chunk before another existing chunk in group
isInitial(): boolean<boolean>pushChunk(chunk): boolean<Chunk><boolean>add a chunk into ChunkGroup. Is pushed on or prepended
remove(): voidremoveChild(group): boolean<ChunkGroup><boolean>removeChunk(chunk): boolean<Chunk><boolean>removeParent(chunkGroup): boolean<ChunkGroup><boolean>replaceChunk(oldChunk, newChunk): boolean | undefined<boolean>
|
<undefined>setEntrypointChunk(chunk): void<Chunk>Sets the chunk with the entrypoint modules for an entrypoint.
setModulePostOrderIndex(module, index): voidSets the bottom-up index of a module in this ChunkGroup
setModulePreOrderIndex(module, index): voidSets the top-down index of a module in this ChunkGroup
setRuntimeChunk(chunk): void<Chunk>Sets the runtimeChunk for an entrypoint.
sortItems(): voidunshiftChunk(chunk): boolean<Chunk><boolean>Performs an unshift of a specific chunk