- {ChunkGroup}
new Entrypoint(): EntrypointasyncEntrypointsIterable{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>returns the name of current ChunkGroup sets a new name for current ChunkGroupoptions{ChunkGroupOptions}origins{OriginRecord[]}parentsIterable{SortableSet}
webpack.Entrypoint.addAsyncEntrypoint(entrypoint): voidentrypoint{Entrypoint}- Returns:
<boolean>
webpack.Entrypoint.addBlock(block): voidblock{AsyncDependenciesBlock}- Returns:
<boolean>
webpack.Entrypoint.addChild(group): voidgroup{ChunkGroup}- Returns:
<boolean>
webpack.Entrypoint.addDependOn(entrypoint): voidentrypoint{Entrypoint}- Returns: {void}
webpack.Entrypoint.addOptions(options): voidoptions{ChunkGroupOptions}- Returns: {void}
when a new chunk is added to a chunkGroup, addingOptions will occur.
webpack.Entrypoint.addOrigin(module, loc, request): voidmodule{Module}loc{DependencyLocation}request<string>- Returns: {void}
webpack.Entrypoint.addParent(parentChunk): voidparentChunk{ChunkGroup}- Returns:
<boolean>
webpack.Entrypoint.checkConstraints(): voidwebpack.Entrypoint.compareTo(chunkGraph, otherGroup): voidchunkGraph{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.
webpack.Entrypoint.dependOn(entrypoint): voidentrypoint{Entrypoint}- Returns:
<boolean>
webpack.Entrypoint.getBlocks(): AsyncDependenciesBlock[]webpack.Entrypoint.getChildren(): ChunkGroup[]webpack.Entrypoint.getChildrenByOrders(moduleGraph, chunkGraph): voidmoduleGraph{ModuleGraph}chunkGraph{ChunkGraph}- Returns: {Record<string, ChunkGroup[]>}
webpack.Entrypoint.getEntrypointChunk(): ChunkReturns the chunk which contains the entrypoint modules (or at least the execution of them)
webpack.Entrypoint.getFiles(): string[]<string[]>webpack.Entrypoint.getModulePostOrderIndex(module): voidmodule{Module}- Returns:
<number>
Gets the bottom-up index of a module in this ChunkGroup
webpack.Entrypoint.getModulePreOrderIndex(module): voidmodule{Module}- Returns:
<number>
Gets the top-down index of a module in this ChunkGroup
webpack.Entrypoint.getNumberOfBlocks(): number<number>webpack.Entrypoint.getNumberOfChildren(): number<number>webpack.Entrypoint.getNumberOfParents(): number<number>webpack.Entrypoint.getParents(): ChunkGroup[]webpack.Entrypoint.getRuntimeChunk(): ChunkFetches the chunk reference containing the webpack bootstrap code
webpack.Entrypoint.hasBlock(block): voidblock{AsyncDependenciesBlock}- Returns:
<boolean>
webpack.Entrypoint.hasParent(parent): voidparent{ChunkGroup}- Returns:
<boolean>
webpack.Entrypoint.insertChunk(chunk, before): voidchunk{Chunk}before{Chunk}- Returns:
<boolean>
inserts a chunk before another existing chunk in group
webpack.Entrypoint.isInitial(): boolean<boolean>webpack.Entrypoint.pushChunk(chunk): voidchunk{Chunk}- Returns:
<boolean>
add a chunk into ChunkGroup. Is pushed on or prepended
webpack.Entrypoint.remove(): voidwebpack.Entrypoint.removeChild(group): voidgroup{ChunkGroup}- Returns:
<boolean>
webpack.Entrypoint.removeChunk(chunk): voidchunk{Chunk}- Returns:
<boolean>
webpack.Entrypoint.removeParent(chunkGroup): voidchunkGroup{ChunkGroup}- Returns:
<boolean>
webpack.Entrypoint.replaceChunk(oldChunk, newChunk): voidoldChunk{Chunk}newChunk{Chunk}- Returns:
<boolean>
webpack.Entrypoint.setEntrypointChunk(chunk): voidchunk{Chunk}- Returns: {void}
Sets the chunk with the entrypoint modules for an entrypoint.
webpack.Entrypoint.setModulePostOrderIndex(module, index): voidmodule{Module}index<number>- Returns: {void}
Sets the bottom-up index of a module in this ChunkGroup
webpack.Entrypoint.setModulePreOrderIndex(module, index): voidmodule{Module}index<number>- Returns: {void}
Sets the top-down index of a module in this ChunkGroup
webpack.Entrypoint.setRuntimeChunk(chunk): voidchunk{Chunk}- Returns: {void}
Sets the runtimeChunk for an entrypoint.
webpack.Entrypoint.sortItems(): voidwebpack.Entrypoint.unshiftChunk(chunk): voidchunk{Chunk}- Returns:
<boolean>
Performs an unshift of a specific chunk