Class: Chunk
Defined in: webpack/types.d.ts:1290Extended by
Constructors
Constructor
new Chunk(Defined in: webpack/types.d.ts:1291name?,backCompat?):Chunk
Parameters
name?
string
backCompat?
boolean
Returns
Chunk
Properties
auxiliaryFiles
auxiliaryFiles:Defined in: webpack/types.d.ts:1306Set<string>
chunkReason?
Defined in: webpack/types.d.ts:1311optionalchunkReason:string
contentHash
contentHash:Defined in: webpack/types.d.ts:1309Record<string,string>
cssFilenameTemplate?
Defined in: webpack/types.d.ts:1301optionalcssFilenameTemplate:string| (pathData,assetInfo?) =>string
debugId
debugId: number
Defined in: webpack/types.d.ts:1294
extraAsync
extraAsync: boolean
Defined in: webpack/types.d.ts:1312
filenameTemplate?
Defined in: webpack/types.d.ts:1298optionalfilenameTemplate:string| (pathData,assetInfo?) =>string
files
files:Defined in: webpack/types.d.ts:1305Set<string>
hash?
Defined in: webpack/types.d.ts:1308optionalhash:string
id
id:Defined in: webpack/types.d.ts:1292string|number
idNameHints
idNameHints:Defined in: webpack/types.d.ts:1296SortableSet<string>
ids
ids: ChunkId[]
Defined in: webpack/types.d.ts:1293
name?
Defined in: webpack/types.d.ts:1295optionalname:string
preventIntegration
preventIntegration: boolean
Defined in: webpack/types.d.ts:1297
rendered
rendered: boolean
Defined in: webpack/types.d.ts:1307
renderedHash?
Defined in: webpack/types.d.ts:1310optionalrenderedHash:string
runtime
runtime: RuntimeSpec
Defined in: webpack/types.d.ts:1304
Accessors
entryModule
Get Signature
get entryModule(): Module
Defined in: webpack/types.d.ts:1317
Deprecated
Returns
Module
groupsIterable
Get Signature
get groupsIterable():Defined in: webpack/types.d.ts:1352SortableSet<ChunkGroup>
Returns
SortableSet<ChunkGroup>
modulesIterable
Get Signature
get modulesIterable():Defined in: webpack/types.d.ts:1322Iterable<Module>
Returns
Iterable<Module>
Methods
addGroup()
addGroup(Defined in: webpack/types.d.ts:1348chunkGroup):void
Parameters
chunkGroup
ChunkGroup
Returns
void
addModule()
addModule(Defined in: webpack/types.d.ts:1319module):boolean
Parameters
module
Module
Returns
boolean
canBeInitial()
canBeInitial(): boolean
Defined in: webpack/types.d.ts:1345
Returns
boolean
canBeIntegrated()
canBeIntegrated(Defined in: webpack/types.d.ts:1329otherChunk):boolean
Parameters
otherChunk
Chunk
Returns
boolean
compareTo()
compareTo(Defined in: webpack/types.d.ts:1323otherChunk):-1|0|1
Parameters
otherChunk
Chunk
Returns
-1 | 0 | 1
containsModule()
containsModule(Defined in: webpack/types.d.ts:1324module):boolean
Parameters
module
Module
Returns
boolean
disconnectFromGroups()
disconnectFromGroups(): void
Defined in: webpack/types.d.ts:1353
Returns
void
getAllAsyncChunks()
getAllAsyncChunks():Defined in: webpack/types.d.ts:1356Set<Chunk>
Returns
Set<Chunk>
getAllInitialChunks()
getAllInitialChunks():Defined in: webpack/types.d.ts:1357Set<Chunk>
Returns
Set<Chunk>
getAllReferencedAsyncEntrypoints()
getAllReferencedAsyncEntrypoints():Defined in: webpack/types.d.ts:1359Set<Entrypoint>
Returns
Set<Entrypoint>
getAllReferencedChunks()
getAllReferencedChunks():Defined in: webpack/types.d.ts:1358Set<Chunk>
Returns
Set<Chunk>
getChildIdsByOrders()
getChildIdsByOrders(Defined in: webpack/types.d.ts:1361chunkGraph,filterFn?):Record<string,ChunkId[]>
Parameters
chunkGraph
ChunkGraph
filterFn?
(c, chunkGraph) => boolean
Returns
Record<string, ChunkId[]>
getChildIdsByOrdersMap()
getChildIdsByOrdersMap(Defined in: webpack/types.d.ts:1369chunkGraph,includeDirectChildren?,filterFn?):ChunkChildIdsByOrdersMapByData
Parameters
chunkGraph
ChunkGraph
includeDirectChildren?
boolean
filterFn?
(c, chunkGraph) => boolean
Returns
ChunkChildIdsByOrdersMapByData
getChildrenOfTypeInOrder()
getChildrenOfTypeInOrder(Defined in: webpack/types.d.ts:1365chunkGraph,type):ChunkChildOfTypeInOrder[]
Parameters
chunkGraph
ChunkGraph
type
string
Returns
ChunkChildOfTypeInOrder[]
getChunkMaps()
getChunkMaps(Defined in: webpack/types.d.ts:1343realHash):ChunkMaps
Parameters
realHash
boolean
Returns
ChunkMaps
Deprecated
getChunkModuleMaps()
getChunkModuleMaps(Defined in: webpack/types.d.ts:1334filterFn):ChunkModuleMaps
Parameters
filterFn
(m) => boolean
Returns
ChunkModuleMaps
getEntryOptions()
getEntryOptions(): EntryOptions
Defined in: webpack/types.d.ts:1347
Returns
EntryOptions
getModules()
getModules(): Module[]
Defined in: webpack/types.d.ts:1325
Returns
Module[]
getNumberOfGroups()
getNumberOfGroups(): number
Defined in: webpack/types.d.ts:1351
Returns
number
getNumberOfModules()
getNumberOfModules(): number
Defined in: webpack/types.d.ts:1321
Returns
number
hasAsyncChunks()
hasAsyncChunks(): boolean
Defined in: webpack/types.d.ts:1360
Returns
boolean
hasChildByOrder()
hasChildByOrder(Defined in: webpack/types.d.ts:1374chunkGraph,type,includeDirectChildren?,filterFn?):boolean
Parameters
chunkGraph
ChunkGraph
type
string
includeDirectChildren?
boolean
filterFn?
(c, chunkGraph) => boolean
Returns
boolean
hasEntryModule()
hasEntryModule(): boolean
Defined in: webpack/types.d.ts:1318
Returns
boolean
hasModuleInGraph()
hasModuleInGraph(Defined in: webpack/types.d.ts:1335filterFn,filterChunkFn?):boolean
Parameters
filterFn
(m) => boolean
filterChunkFn?
(c, chunkGraph) => boolean
Returns
boolean
hasRuntime()
hasRuntime(): boolean
Defined in: webpack/types.d.ts:1344
Returns
boolean
integrate()
integrate(Defined in: webpack/types.d.ts:1328otherChunk):boolean
Parameters
otherChunk
Chunk
Returns
boolean
integratedSize()
integratedSize(Defined in: webpack/types.d.ts:1333otherChunk,options):number
Parameters
otherChunk
Chunk
options
ChunkSizeOptions
Returns
number
isEmpty()
isEmpty(): boolean
Defined in: webpack/types.d.ts:1330
Returns
boolean
isInGroup()
isInGroup(Defined in: webpack/types.d.ts:1350chunkGroup):boolean
Parameters
chunkGroup
ChunkGroup
Returns
boolean
isOnlyInitial()
isOnlyInitial(): boolean
Defined in: webpack/types.d.ts:1346
Returns
boolean
modulesSize()
modulesSize(): number
Defined in: webpack/types.d.ts:1331
Returns
number
moveModule()
moveModule(Defined in: webpack/types.d.ts:1327module,otherChunk):void
Parameters
module
Module
otherChunk
Chunk
Returns
void
remove()
remove(): void
Defined in: webpack/types.d.ts:1326
Returns
void
removeGroup()
removeGroup(Defined in: webpack/types.d.ts:1349chunkGroup):void
Parameters
chunkGroup
ChunkGroup
Returns
void
removeModule()
removeModule(Defined in: webpack/types.d.ts:1320module):void
Parameters
module
Module
Returns
void
size()
size(Defined in: webpack/types.d.ts:1332options?):number
Parameters
options?
ChunkSizeOptions
Returns
number
split()
split(Defined in: webpack/types.d.ts:1354newChunk):void
Parameters
newChunk
Chunk
Returns
void
updateHash()
updateHash(Defined in: webpack/types.d.ts:1355hash,chunkGraph):void
Parameters
hash
Hash
chunkGraph
ChunkGraph
Returns
void