On this page

These types are not exported by webpack, but they are available to TypeScript consumers.



Attributes
chunks:Set<Chunk>
onChunks:Chunk[]

Attributes
chunkGraph:ChunkGraph
the chunk graph
codeGenerationResults:CodeGenerationResults
results of code generation
moduleGraph:ModuleGraph
the module graph
runtimeTemplate:RuntimeTemplate
the runtime template


Attributes
contentHash:Record<ChunkId, Record<string, string>>
hash:Record<ChunkId, string>
name:Record<ChunkId, string>




Attributes

Attributes
contentHash:Record<string, string>
contentHashWithLength:Record<string, (length: number) => string>
hash:string
hashWithLength:(length: number) => string
name:string

Attributes
chunk:Chunk
the chunk
chunkGraph:ChunkGraph
the chunk graph
init fragments for the chunk
codeGenerationResults:CodeGenerationResults
results of code generation
dependencyTemplates:DependencyTemplates
the dependency templates
moduleGraph:ModuleGraph
the module graph
runtimeTemplate:RuntimeTemplate
the runtime template
strictMode:boolean
rendering in strict context


Attributes
chunkOverhead:number
constant overhead for a chunk
entryChunkMultiplicator:number
multiplicator for initial chunks


Returns array of values.

Attributes
auxiliaryFiles:string[]
children:ChunkId[]
childrenByOrder:Record<string, ChunkId[]>
entry:boolean
files:string[]
filteredModules:number
hash:string
idHints:string[]
initial:boolean
modules:StatsModule[]
names:string[]
parents:ChunkId[]
reason:string
recorded:boolean
rendered:boolean
runtime:string[]
siblings:ChunkId[]
size:number
sizes:Record<string, number>

Returns array of values.

Attributes
assets:{ name: string; size?: number }[]
assetsSize:number
auxiliaryAssets:{ name: string; size?: number }[]
auxiliaryAssetsSize:number
childAssets:Record<string, string[]>
children:Record<string, StatsChunkGroup[]>
chunks:ChunkId[]
filteredAssets:number
filteredAuxiliaryAssets:number
isOverSizeLimit:boolean
name:string | null

Returns array of values.

Attributes
loc:string
module:string
moduleId:string | number
moduleIdentifier:string
moduleName:string
request:string

Options object for splitting chunks into smaller chunks.

Attributes
automaticNameDelimiter:string
Sets the name delimiter for created chunks.
Assign modules to a cache group (modules from different cache groups are tried to keep in separate chunks, default categories: 'default', 'defaultVendors').
chunks:RegExp | "all" | "initial" | "async" | ((chunk: Chunk) => boolean | undefined)
Select chunks for determining shared modules (defaults to "async", "initial" and "all" requires adding these chunks to the HTML).
defaultSizeTypes:string[]
Sets the size types which are used when a number is used for sizes.
enforceSizeThreshold:number | { [index: string]: number }
Size threshold at which splitting is enforced and other restrictions (minRemainingSize, maxAsyncRequests, maxInitialRequests) are ignored.
fallbackCacheGroup:{ automaticNameDelimiter?: string; chunks?: RegExp | "all" | "initial" | "async" | ((chunk: Chunk) => boolean | undefined); maxAsyncSize?: number | { [index: string]: number }; maxInitialSize?: number | { [index: string]: number }; maxSize?: number | { [index: string]: number }; minSize?: number | { [index: string]: number }; minSizeReduction?: number | { [index: string]: number } }
Options for modules not selected by any other cache group.
Sets the template for the filename for created chunks.
hidePathInfo:boolean
Prevents exposing path info when creating names for parts splitted by maxSize.
maxAsyncRequests:number
Maximum number of requests which are accepted for on-demand loading.
maxAsyncSize:number | { [index: string]: number }
Maximal size hint for the on-demand chunks.
maxInitialRequests:number
Maximum number of initial chunks which are accepted for an entry point.
maxInitialSize:number | { [index: string]: number }
Maximal size hint for the initial chunks.
maxSize:number | { [index: string]: number }
Maximal size hint for the created chunks.
minChunks:number
Minimum number of times a module has to be duplicated until it's considered for splitting.
minRemainingSize:number | { [index: string]: number }
Minimal size for the chunks the stay after moving the modules to a new chunk.
minSize:number | { [index: string]: number }
Minimal size for the created chunks.
minSizeReduction:number | { [index: string]: number }
Minimum size reduction due to the created chunk.
name:string | false | ((module: Module, chunks: Chunk[], key: string) => string | undefined)
Give chunks created a name (chunks with equal name are merged).
usedExports:boolean
Compare used exports when checking common modules. Modules will only be put in the same chunk when exports are equal.

Attributes
fetchPriority:"auto" | "low" | "high"
prefetchOrder:number
preloadOrder:number

Attributes
byName:Record<string, number>
bySource:Record<string, number>
usedIds:number[]

Attributes
columns:boolean
finalSource:boolean
source:boolean

Type:string | ((pathData: PathDataChunk, assetInfo?: AssetInfo) => string)

Type:RawChunkGroupOptions & { name?: null | string }
Attributes
name:null | string

Type:string | number

Type:null | string

Type:PathData & { chunk: Chunk | ChunkPathData }
Attributes