These types are not exported by webpack, but they are available to TypeScript consumers.
[index: {string}]ChunkId[]
[index: {string}]ChunkChildIdsByOrdersMap
Attributes
Attributes
chunkGraph:
ChunkGraphthe chunk graph
codeGenerationResults:
CodeGenerationResultsresults of code generation
moduleGraph:
ModuleGraphthe module graph
runtimeTemplate:
RuntimeTemplatethe runtime template
Attributes
[index: {string}]string
Attributes
Attributes
Attributes
chunk:
Chunkthe chunk
chunkGraph:
ChunkGraphthe chunk graph
chunkInitFragments:
InitFragment<ChunkRenderContextJavascriptModulesPlugin>[]init fragments for the chunk
codeGenerationResults:
CodeGenerationResultsresults of code generation
dependencyTemplates:
DependencyTemplatesthe dependency templates
moduleGraph:
ModuleGraphthe module graph
runtimeTemplate:
RuntimeTemplatethe runtime template
strictMode:
booleanrendering in strict context
Attributes
[index: {string}]string
Returns array of values.
Attributes
auxiliaryFiles:
string[]children:
ChunkId[]entry:
booleanfiles:
string[]filteredModules:
numberhash:
stringidHints:
string[]initial:
booleanmodules:
StatsModule[]names:
string[]origins:
StatsChunkOrigin[]parents:
ChunkId[]reason:
stringrecorded:
booleanrendered:
booleanruntime:
string[]siblings:
ChunkId[]size:
numberReturns array of values.
Attributes
Returns array of values.
Attributes
Options object for splitting chunks into smaller chunks.
Attributes
automaticNameDelimiter:
stringSets the name delimiter for created chunks.
cacheGroups:
{ [index: string]: string | false | RegExp | ((module: Module) => void | OptimizationSplitChunksCacheGroup | OptimizationSplitChunksCacheGroup[]) | OptimizationSplitChunksCacheGroup }Assign modules to a cache group (modules from different cache groups are tried to keep in separate chunks, default categories: 'default', 'defaultVendors').
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.
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.
filename:
string | TemplatePathFn<PathDataChunk>Sets the template for the filename for created chunks.
hidePathInfo:
booleanPrevents exposing path info when creating names for parts splitted by maxSize.
maxAsyncRequests:
numberMaximum number of requests which are accepted for on-demand loading.
maxInitialRequests:
numberMaximum number of initial chunks which are accepted for an entry point.
minChunks:
numberMinimum number of times a module has to be duplicated until it's considered for splitting.
Minimal size for the chunks the stay after moving the modules to a new chunk.
Minimum size reduction due to the created chunk.
Give chunks created a name (chunks with equal name are merged).
usedExports:
booleanCompare used exports when checking common modules. Modules will only be put in the same chunk when exports are equal.
Attributes
Attributes
Attributes
Type:
string | ((pathData: PathDataChunk, assetInfo?: AssetInfo) => string)Type:
RawChunkGroupOptions & { name?: null | string }Attributes
name:
null | stringType:
null | stringType:
PathData & { chunk: Chunk | ChunkPathData }Attributes
chunk:
Chunk | ChunkPathData