class webpack.Entrypoint extends ChunkGroupnew Entrypoint(): EntrypointEntrypointSortableSet<ChunkGroup>Iterable<AsyncDependenciesBlock>SortableSet<ChunkGroup>Chunk[]stringnumberstringnumberstring | nullChunkGroupOptionsOriginRecord[]SortableSet<ChunkGroup>addAsyncEntrypoint(entrypoint): booleanEntrypointbooleanRegisters an async entrypoint that is rooted in this chunk group.
addBlock(block): booleanAsyncDependenciesBlockbooleanAssociates an async dependency block with this chunk group.
addChild(group): booleanChunkGroupbooleanAdds a child chunk group to the current group.
addDependOn(entrypoint): voidEntrypointvoidaddOptions(options): voidChunkGroupOptionsvoidMerges additional options into the chunk group. Order-based options are combined by taking the higher priority, while unsupported conflicts surface as an explicit error.
addOrigin(module, loc, request): voidRecords where this chunk group originated from in user code. The origin is used for diagnostics, ordering, and reporting.
addParent(parentChunk): booleanChunkGroupbooleanRecords a parent chunk group relationship.
checkConstraints(): voidvoidcompareTo(chunkGraph, otherGroup): -1 | 0 | 1Sorting predicate which allows current ChunkGroup to be compared against another. Sorting values are based off of number of chunks in ChunkGroup.
dependOn(entrypoint): booleanEntrypointbooleangetBlocks(): AsyncDependenciesBlock[]AsyncDependenciesBlock[]Returns the async dependency blocks that create or reference this group.
getChildOrderOptions(childGroup, chunkGraph): Record<string, number>Aggregates per-block *Order options for the blocks that bridge this
chunk group to the given child chunk group. *Order options are tied to
the originating import() call and must not be sourced from the child's
shared options, otherwise a webpackPrefetch/Preload directive from one
parent would leak into other parents that share the child by name.
getChildren(): ChunkGroup[]ChunkGroup[]Returns the child chunk groups reachable from this group.
getChildrenByOrders(moduleGraph, chunkGraph): Record<string, ChunkGroup[]>Groups child chunk groups by their *Order options and sorts each group
by descending order and deterministic chunk-group comparison.
getEntrypointChunk(): ChunkChunkReturns the chunk which contains the entrypoint modules (or at least the execution of them)
getFiles(): string[]string[]Collects the emitted files produced by every chunk in the group.
getModulePostOrderIndex(module): number | undefinedReturns the module's bottom-up traversal index within this group.
getModulePreOrderIndex(module): number | undefinedReturns the module's top-down traversal index within this group.
getNumberOfBlocks(): numbernumbergetNumberOfChildren(): numbernumbergetNumberOfParents(): numbernumbergetParents(): ChunkGroup[]ChunkGroup[]Returns the parent chunk groups that can lead to this group.
getRuntimeChunk(): Chunk | nullChunk | nullFetches the chunk reference containing the webpack bootstrap code
hasBlock(block): booleanAsyncDependenciesBlockbooleanChecks whether an async dependency block is associated with this group.
hasParent(parent): booleanChunkGroupbooleanChecks whether the provided group is registered as a parent.
insertChunk(chunk, before): booleanInserts a chunk directly before another chunk that already belongs to the group, preserving the rest of the ordering.
isInitial(): booleanbooleanIndicates whether this chunk group is loaded as part of the initial page load instead of being created lazily.
pushChunk(chunk): booleanAppends a chunk to the group when it is not already a member.
remove(): voidvoidDisconnects this group from its parents, children, and chunks. Child groups are reconnected to this group's parents so the surrounding graph remains intact after removal.
removeChild(group): booleanChunkGroupbooleanRemoves a child chunk group and clears the corresponding parent link on the removed child.
removeChunk(chunk): booleanRemoves a chunk from this group.
removeParent(chunkGroup): booleanChunkGroupbooleanRemoves a parent chunk group and clears the reverse child relationship.
replaceChunk(oldChunk, newChunk): boolean | undefinedReplaces one member chunk with another while preserving the group's ordering and avoiding duplicates.
setEntrypointChunk(chunk): voidSets the chunk with the entrypoint modules for an entrypoint.
setModulePostOrderIndex(module, index): voidStores the module's bottom-up traversal index within this group.
setModulePreOrderIndex(module, index): voidStores the module's top-down traversal index within this group.
setRuntimeChunk(chunk): voidSets the runtimeChunk for an entrypoint.
sortItems(): voidvoidunshiftChunk(chunk): booleanMoves a chunk to the front of the group or inserts it when it is not already present.