Attributes
new ChunkGroup(): ChunkGroupReturns:
<ChunkGroup>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): booleanAttributes
entrypoint:
<Entrypoint>Returns:
<boolean>addBlock(block): booleanAttributes
block:
<AsyncDependenciesBlock>Returns:
<boolean>addChild(group): booleanAttributes
group:
<ChunkGroup>Returns:
<boolean>addOptions(options): voidoptions{ChunkGroupOptions}- Returns: {void}
when a new chunk is added to a chunkGroup, addingOptions will occur.
addOrigin(module, loc, request): voidAttributes
Returns:
{void}
addParent(parentChunk): booleanAttributes
parentChunk:
<ChunkGroup>Returns:
<boolean>checkConstraints(): voidReturns:
{void}
compareTo(chunkGraph, otherGroup): -1 | 0 | 1Attributes
chunkGraph:
<ChunkGraph>otherGroup:
<ChunkGroup>Returns:
{-1|0|1}
Sorting predicate which allows current ChunkGroup to be compared against another. Sorting values are based off of number of chunks in ChunkGroup.
getBlocks(): AsyncDependenciesBlock[]Returns:
<AsyncDependenciesBlock[]>getChildren(): ChunkGroup[]Returns:
<ChunkGroup[]>getChildrenByOrders(moduleGraph, chunkGraph): Record<string, ChunkGroup[]>Attributes
moduleGraph:
<ModuleGraph>chunkGraph:
<ChunkGraph>Returns:
{Record<string, ChunkGroup[]>}
getFiles(): string[]Returns:
<string[]>getModulePostOrderIndex(module): number | undefinedAttributes
module:
<Module>Returns:
<number>
|
<undefined>Gets the bottom-up index of a module in this ChunkGroup
getModulePreOrderIndex(module): number | undefinedAttributes
module:
<Module>Returns:
<number>
|
<undefined>Gets the top-down index of a module in this ChunkGroup
getNumberOfBlocks(): numberReturns:
<number>getNumberOfChildren(): numberReturns:
<number>getNumberOfParents(): numberReturns:
<number>getParents(): ChunkGroup[]Returns:
<ChunkGroup[]>hasBlock(block): booleanAttributes
block:
<AsyncDependenciesBlock>Returns:
<boolean>hasParent(parent): booleanAttributes
parent:
<ChunkGroup>Returns:
<boolean>insertChunk(chunk, before): booleanAttributes
Returns:
<boolean>inserts a chunk before another existing chunk in group
isInitial(): booleanReturns:
<boolean>pushChunk(chunk): booleanAttributes
chunk:
<Chunk>Returns:
<boolean>add a chunk into ChunkGroup. Is pushed on or prepended
remove(): voidReturns:
{void}
removeChild(group): booleanAttributes
group:
<ChunkGroup>Returns:
<boolean>removeChunk(chunk): booleanAttributes
chunk:
<Chunk>Returns:
<boolean>removeParent(chunkGroup): booleanAttributes
chunkGroup:
<ChunkGroup>Returns:
<boolean>replaceChunk(oldChunk, newChunk): boolean | undefinedAttributes
Returns:
<boolean>
|
<undefined>setModulePostOrderIndex(module, index): voidAttributes
Returns:
{void}
Sets the bottom-up index of a module in this ChunkGroup
setModulePreOrderIndex(module, index): voidAttributes
Returns:
{void}
Sets the top-down index of a module in this ChunkGroup
sortItems(): voidReturns:
{void}
unshiftChunk(chunk): booleanAttributes
chunk:
<Chunk>Returns:
<boolean>Performs an unshift of a specific chunk