On this page

Attributes
new Entrypoint(): Entrypoint
Returns:<Entrypoint>
  • asyncEntrypointsIterable {SortableSet}
  • blocksIterable {Iterable}
  • childrenIterable {SortableSet}
  • chunks <Chunk[]>
  • debugId <string> get a uniqueId for ChunkGroup, made up of its member Chunk debugId's
  • getModuleIndex <object>
  • getModuleIndex2 <object>
  • groupDebugId <number>
  • id <string> get a unique id for ChunkGroup, made up of its member Chunk id's
  • index <number>
  • name <string> returns the name of current ChunkGroup sets a new name for current ChunkGroup
  • options {ChunkGroupOptions}
  • origins {OriginRecord[]}
  • parentsIterable {SortableSet}
webpack.Entrypoint.addAsyncEntrypoint(entrypoint): boolean
Attributes
entrypoint:<Entrypoint>
Returns:<boolean>

webpack.Entrypoint.addBlock(block): boolean
Attributes
Returns:<boolean>

webpack.Entrypoint.addChild(group): boolean
Attributes
Returns:<boolean>

webpack.Entrypoint.addDependOn(entrypoint): void
Attributes
entrypoint:<Entrypoint>
Returns:
{void}

webpack.Entrypoint.addOptions(options): void
  • options {ChunkGroupOptions}
  • Returns: {void}

when a new chunk is added to a chunkGroup, addingOptions will occur.


webpack.Entrypoint.addOrigin(module, loc, request): void
Attributes
module:<Module>
loc:
{DependencyLocation}
request:<string>
Returns:
{void}

webpack.Entrypoint.addParent(parentChunk): boolean
Attributes
parentChunk:<ChunkGroup>
Returns:<boolean>

webpack.Entrypoint.checkConstraints(): void
Returns:
{void}

webpack.Entrypoint.compareTo(chunkGraph, otherGroup): -1 | 0 | 1
Attributes
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.


webpack.Entrypoint.dependOn(entrypoint): boolean
Attributes
entrypoint:<Entrypoint>
Returns:<boolean>

webpack.Entrypoint.getBlocks(): AsyncDependenciesBlock[]

webpack.Entrypoint.getChildren(): ChunkGroup[]

webpack.Entrypoint.getChildrenByOrders(moduleGraph, chunkGraph): Record<string, ChunkGroup[]>
Attributes
moduleGraph:<ModuleGraph>
chunkGraph:<ChunkGraph>
Returns:
{Record<string, ChunkGroup[]>}

webpack.Entrypoint.getEntrypointChunk(): Chunk
Returns:<Chunk>

Returns the chunk which contains the entrypoint modules (or at least the execution of them)


webpack.Entrypoint.getFiles(): string[]
Returns:<string[]>

webpack.Entrypoint.getModulePostOrderIndex(module): number
Attributes
module:<Module>
Returns:<number>

Gets the bottom-up index of a module in this ChunkGroup


webpack.Entrypoint.getModulePreOrderIndex(module): number
Attributes
module:<Module>
Returns:<number>

Gets the top-down index of a module in this ChunkGroup


webpack.Entrypoint.getNumberOfBlocks(): number
Returns:<number>

webpack.Entrypoint.getNumberOfChildren(): number
Returns:<number>

webpack.Entrypoint.getNumberOfParents(): number
Returns:<number>

webpack.Entrypoint.getParents(): ChunkGroup[]

webpack.Entrypoint.getRuntimeChunk(): Chunk
Returns:<Chunk>

Fetches the chunk reference containing the webpack bootstrap code


webpack.Entrypoint.hasBlock(block): boolean
Attributes
Returns:<boolean>

webpack.Entrypoint.hasParent(parent): boolean
Attributes
Returns:<boolean>

webpack.Entrypoint.insertChunk(chunk, before): boolean
Attributes
chunk:<Chunk>
before:<Chunk>
Returns:<boolean>

inserts a chunk before another existing chunk in group


webpack.Entrypoint.isInitial(): boolean
Returns:<boolean>

webpack.Entrypoint.pushChunk(chunk): boolean
Attributes
chunk:<Chunk>
Returns:<boolean>

add a chunk into ChunkGroup. Is pushed on or prepended


webpack.Entrypoint.remove(): void
Returns:
{void}

webpack.Entrypoint.removeChild(group): boolean
Attributes
Returns:<boolean>

webpack.Entrypoint.removeChunk(chunk): boolean
Attributes
chunk:<Chunk>
Returns:<boolean>

webpack.Entrypoint.removeParent(chunkGroup): boolean
Attributes
chunkGroup:<ChunkGroup>
Returns:<boolean>

webpack.Entrypoint.replaceChunk(oldChunk, newChunk): boolean
Attributes
oldChunk:<Chunk>
newChunk:<Chunk>
Returns:<boolean>

webpack.Entrypoint.setEntrypointChunk(chunk): void
Attributes
chunk:<Chunk>
Returns:
{void}

Sets the chunk with the entrypoint modules for an entrypoint.


webpack.Entrypoint.setModulePostOrderIndex(module, index): void
Attributes
module:<Module>
index:<number>
Returns:
{void}

Sets the bottom-up index of a module in this ChunkGroup


webpack.Entrypoint.setModulePreOrderIndex(module, index): void
Attributes
module:<Module>
index:<number>
Returns:
{void}

Sets the top-down index of a module in this ChunkGroup


webpack.Entrypoint.setRuntimeChunk(chunk): void
Attributes
chunk:<Chunk>
Returns:
{void}

Sets the runtimeChunk for an entrypoint.


webpack.Entrypoint.sortItems(): void
Returns:
{void}

webpack.Entrypoint.unshiftChunk(chunk): boolean
Attributes
chunk:<Chunk>
Returns:<boolean>

Performs an unshift of a specific chunk