Skip to main content
webpack / Entrypoint

Abstract Class: Entrypoint

Defined in: webpack/types.d.ts:4964

Extends

Constructors

Constructor

new Entrypoint(): Entrypoint

Returns

Entrypoint

Inherited from

ChunkGroup.constructor

Properties

chunks

chunks: Chunk[]
Defined in: webpack/types.d.ts:1599

Inherited from

ChunkGroup.chunks

getModuleIndex()

getModuleIndex: (module) => number
Defined in: webpack/types.d.ts:1698

Parameters

module
Module

Returns

number

Inherited from

ChunkGroup.getModuleIndex

getModuleIndex2()

getModuleIndex2: (module) => number
Defined in: webpack/types.d.ts:1699

Parameters

module
Module

Returns

number

Inherited from

ChunkGroup.getModuleIndex2

groupDebugId

groupDebugId: number
Defined in: webpack/types.d.ts:1597

Inherited from

ChunkGroup.groupDebugId

index?

optional index: number
Defined in: webpack/types.d.ts:1601

Inherited from

ChunkGroup.index

name?

optional name: string
Defined in: webpack/types.d.ts:1612 returns the name of current ChunkGroup sets a new name for current ChunkGroup

Inherited from

ChunkGroup.name

options

options: ChunkGroupOptions
Defined in: webpack/types.d.ts:1598

Inherited from

ChunkGroup.options

origins

origins: OriginRecord[]
Defined in: webpack/types.d.ts:1600

Inherited from

ChunkGroup.origins

Accessors

asyncEntrypointsIterable

Get Signature

get asyncEntrypointsIterable(): SortableSet<ChunkGroup>
Defined in: webpack/types.d.ts:1653
Returns
SortableSet<ChunkGroup>

Inherited from

ChunkGroup.asyncEntrypointsIterable

blocksIterable

Get Signature

get blocksIterable(): Iterable<AsyncDependenciesBlock>
Defined in: webpack/types.d.ts:1657
Returns
Iterable<AsyncDependenciesBlock>

Inherited from

ChunkGroup.blocksIterable

childrenIterable

Get Signature

get childrenIterable(): SortableSet<ChunkGroup>
Defined in: webpack/types.d.ts:1644
Returns
SortableSet<ChunkGroup>

Inherited from

ChunkGroup.childrenIterable

debugId

Get Signature

get debugId(): string
Defined in: webpack/types.d.ts:1617 get a uniqueId for ChunkGroup, made up of its member Chunk debugId’s
Returns
string

Inherited from

ChunkGroup.debugId

id

Get Signature

get id(): string
Defined in: webpack/types.d.ts:1622 get a unique id for ChunkGroup, made up of its member Chunk id’s
Returns
string

Inherited from

ChunkGroup.id

parentsIterable

Get Signature

get parentsIterable(): SortableSet<ChunkGroup>
Defined in: webpack/types.d.ts:1650
Returns
SortableSet<ChunkGroup>

Inherited from

ChunkGroup.parentsIterable

Methods

addAsyncEntrypoint()

addAsyncEntrypoint(entrypoint): boolean
Defined in: webpack/types.d.ts:1652

Parameters

entrypoint
Entrypoint

Returns

boolean

Inherited from

ChunkGroup.addAsyncEntrypoint

addBlock()

addBlock(block): boolean
Defined in: webpack/types.d.ts:1658

Parameters

block
AsyncDependenciesBlock

Returns

boolean

Inherited from

ChunkGroup.addBlock

addChild()

addChild(group): boolean
Defined in: webpack/types.d.ts:1641

Parameters

group
ChunkGroup

Returns

boolean

Inherited from

ChunkGroup.addChild

addDependOn()

addDependOn(entrypoint): void
Defined in: webpack/types.d.ts:4985

Parameters

entrypoint
Entrypoint

Returns

void

addOptions()

addOptions(options): void
Defined in: webpack/types.d.ts:1606 when a new chunk is added to a chunkGroup, addingOptions will occur.

Parameters

options
ChunkGroupOptions

Returns

void

Inherited from

ChunkGroup.addOptions

addOrigin()

addOrigin(module, loc, request): void
Defined in: webpack/types.d.ts:1659

Parameters

module
Module
loc
DependencyLocation
request
string

Returns

void

Inherited from

ChunkGroup.addOrigin

addParent()

addParent(parentChunk): boolean
Defined in: webpack/types.d.ts:1646

Parameters

parentChunk
ChunkGroup

Returns

boolean

Inherited from

ChunkGroup.addParent

checkConstraints()

checkConstraints(): void
Defined in: webpack/types.d.ts:1697

Returns

void

Inherited from

ChunkGroup.checkConstraints

compareTo()

compareTo(chunkGraph, otherGroup): -1 | 0 | 1
Defined in: webpack/types.d.ts:1672 Sorting predicate which allows current ChunkGroup to be compared against another. Sorting values are based off of number of chunks in ChunkGroup.

Parameters

chunkGraph
ChunkGraph
otherGroup
ChunkGroup

Returns

-1 | 0 | 1

Inherited from

ChunkGroup.compareTo

dependOn()

dependOn(entrypoint): boolean
Defined in: webpack/types.d.ts:4986

Parameters

entrypoint
Entrypoint

Returns

boolean

getBlocks()

getBlocks(): AsyncDependenciesBlock[]
Defined in: webpack/types.d.ts:1654

Returns

AsyncDependenciesBlock[]

Inherited from

ChunkGroup.getBlocks

getChildren()

getChildren(): ChunkGroup[]
Defined in: webpack/types.d.ts:1642

Returns

ChunkGroup[]

Inherited from

ChunkGroup.getChildren

getChildrenByOrders()

getChildrenByOrders(moduleGraph, chunkGraph): Record<string, ChunkGroup[]>
Defined in: webpack/types.d.ts:1673

Parameters

moduleGraph
ModuleGraph
chunkGraph
ChunkGraph

Returns

Record<string, ChunkGroup[]>

Inherited from

ChunkGroup.getChildrenByOrders

getEntrypointChunk()

getEntrypointChunk(): Chunk
Defined in: webpack/types.d.ts:4984 Returns the chunk which contains the entrypoint modules (or at least the execution of them)

Returns

Chunk

getFiles()

getFiles(): string[]
Defined in: webpack/types.d.ts:1664

Returns

string[]

Inherited from

ChunkGroup.getFiles

getModulePostOrderIndex()

getModulePostOrderIndex(module): number
Defined in: webpack/types.d.ts:1696 Gets the bottom-up index of a module in this ChunkGroup

Parameters

module
Module

Returns

number

Inherited from

ChunkGroup.getModulePostOrderIndex

getModulePreOrderIndex()

getModulePreOrderIndex(module): number
Defined in: webpack/types.d.ts:1686 Gets the top-down index of a module in this ChunkGroup

Parameters

module
Module

Returns

number

Inherited from

ChunkGroup.getModulePreOrderIndex

getNumberOfBlocks()

getNumberOfBlocks(): number
Defined in: webpack/types.d.ts:1655

Returns

number

Inherited from

ChunkGroup.getNumberOfBlocks

getNumberOfChildren()

getNumberOfChildren(): number
Defined in: webpack/types.d.ts:1643

Returns

number

Inherited from

ChunkGroup.getNumberOfChildren

getNumberOfParents()

getNumberOfParents(): number
Defined in: webpack/types.d.ts:1648

Returns

number

Inherited from

ChunkGroup.getNumberOfParents

getParents()

getParents(): ChunkGroup[]
Defined in: webpack/types.d.ts:1647

Returns

ChunkGroup[]

Inherited from

ChunkGroup.getParents

getRuntimeChunk()

getRuntimeChunk(): Chunk
Defined in: webpack/types.d.ts:4973 Fetches the chunk reference containing the webpack bootstrap code

Returns

Chunk

hasBlock()

hasBlock(block): boolean
Defined in: webpack/types.d.ts:1656

Parameters

block
AsyncDependenciesBlock

Returns

boolean

Inherited from

ChunkGroup.hasBlock

hasParent()

hasParent(parent): boolean
Defined in: webpack/types.d.ts:1649

Parameters

parent
ChunkGroup

Returns

boolean

Inherited from

ChunkGroup.hasParent

insertChunk()

insertChunk(chunk, before): boolean
Defined in: webpack/types.d.ts:1632 inserts a chunk before another existing chunk in group

Parameters

chunk
Chunk
before
Chunk

Returns

boolean

Inherited from

ChunkGroup.insertChunk

isInitial()

isInitial(): boolean
Defined in: webpack/types.d.ts:1640

Returns

boolean

Inherited from

ChunkGroup.isInitial

pushChunk()

pushChunk(chunk): boolean
Defined in: webpack/types.d.ts:1637 add a chunk into ChunkGroup. Is pushed on or prepended

Parameters

chunk
Chunk

Returns

boolean

Inherited from

ChunkGroup.pushChunk

remove()

remove(): void
Defined in: webpack/types.d.ts:1665

Returns

void

Inherited from

ChunkGroup.remove

removeChild()

removeChild(group): boolean
Defined in: webpack/types.d.ts:1645

Parameters

group
ChunkGroup

Returns

boolean

Inherited from

ChunkGroup.removeChild

removeChunk()

removeChunk(chunk): boolean
Defined in: webpack/types.d.ts:1639

Parameters

chunk
Chunk

Returns

boolean

Inherited from

ChunkGroup.removeChunk

removeParent()

removeParent(chunkGroup): boolean
Defined in: webpack/types.d.ts:1651

Parameters

chunkGroup
ChunkGroup

Returns

boolean

Inherited from

ChunkGroup.removeParent

replaceChunk()

replaceChunk(oldChunk, newChunk): boolean
Defined in: webpack/types.d.ts:1638

Parameters

oldChunk
Chunk
newChunk
Chunk

Returns

boolean

Inherited from

ChunkGroup.replaceChunk

setEntrypointChunk()

setEntrypointChunk(chunk): void
Defined in: webpack/types.d.ts:4978 Sets the chunk with the entrypoint modules for an entrypoint.

Parameters

chunk
Chunk

Returns

void

setModulePostOrderIndex()

setModulePostOrderIndex(module, index): void
Defined in: webpack/types.d.ts:1691 Sets the bottom-up index of a module in this ChunkGroup

Parameters

module
Module
index
number

Returns

void

Inherited from

ChunkGroup.setModulePostOrderIndex

setModulePreOrderIndex()

setModulePreOrderIndex(module, index): void
Defined in: webpack/types.d.ts:1681 Sets the top-down index of a module in this ChunkGroup

Parameters

module
Module
index
number

Returns

void

Inherited from

ChunkGroup.setModulePreOrderIndex

setRuntimeChunk()

setRuntimeChunk(chunk): void
Defined in: webpack/types.d.ts:4968 Sets the runtimeChunk for an entrypoint.

Parameters

chunk
Chunk

Returns

void

sortItems()

sortItems(): void
Defined in: webpack/types.d.ts:1666

Returns

void

Inherited from

ChunkGroup.sortItems

unshiftChunk()

unshiftChunk(chunk): boolean
Defined in: webpack/types.d.ts:1627 Performs an unshift of a specific chunk

Parameters

chunk
Chunk

Returns

boolean

Inherited from

ChunkGroup.unshiftChunk