Class ChunkGroup Abstract
Properties
chunks
getModuleIndex
get
Module
Index
: (module
: Module) => undefined | numberType declaration
- (module: Module): undefined | number
Parameters
Returns undefined | number
getModuleIndex2
get
Module
Index2
: (module
: Module) => undefined | numberType declaration
- (module: Module): undefined | number
Parameters
Returns undefined | number
groupDebugId
groupDebugId: number
Optional index
index?: number
Optional name
name?: string
options
origins
Accessors
asyncEntrypointsIterable
blocksIterable
childrenIterable
debugId
Returns string
id
Returns string
parentsIterable
Methods
addAsyncEntrypoint
- addAsyncEntrypoint(entrypoint: Entrypoint): boolean
Parameters
Returns boolean
addBlock
Parameters
Returns boolean
addChild
Parameters
Returns boolean
addOptions
Parameters
Returns void
addOrigin
Parameters
Returns void
addParent
Parameters
Returns boolean
checkConstraints
Returns void
compareTo
Parameters
Returns 0 | 1 | -1
getBlocks
getChildren
getChildrenByOrders
Parameters
Returns Record<string, ChunkGroup[]>
getFiles
Returns string[]
getModulePostOrderIndex
- getModulePostOrderIndex(module: Module): undefined | number
Parameters
Returns undefined | number
getModulePreOrderIndex
- getModulePreOrderIndex(module: Module): undefined | number
Parameters
Returns undefined | number
getNumberOfBlocks
- getNumberOfBlocks(): number
Returns number
getNumberOfChildren
- getNumberOfChildren(): number
Returns number
getNumberOfParents
- getNumberOfParents(): number
Returns number
getParents
hasBlock
Parameters
Returns boolean
hasParent
Parameters
Returns boolean
insertChunk
Parameters
Returns boolean
isInitial
Returns boolean
pushChunk
- pushChunk(chunk: Chunk): boolean
Parameters
Returns boolean
remove
Returns void
removeChild
Parameters
Returns boolean
removeChunk
- removeChunk(chunk: Chunk): boolean
Parameters
Returns boolean
removeParent
Parameters
Returns boolean
replaceChunk
- replaceChunk(oldChunk: Chunk, newChunk: Chunk): boolean
Parameters
Returns boolean
setModulePostOrderIndex
- setModulePostOrderIndex(module: Module, index: number): void
Parameters
Returns void
setModulePreOrderIndex
- setModulePreOrderIndex(module: Module, index: number): void
Parameters
Returns void
sortItems
Returns void
unshiftChunk
- unshiftChunk(chunk: Chunk): boolean
Parameters
Returns boolean
returns the name of current ChunkGroup sets a new name for current ChunkGroup