These types are not exported by webpack, but they are available to TypeScript consumers.
Stats options object.
Attributes
all:
booleanFallback value for stats options when an option is not defined (has precedence over local webpack defaults).
assets:
booleanAdd assets information.
assetsSort:
string | falseSort the assets by that field.
assetsSpace:
numberSpace to display assets (groups will be collapsed to fit this space).
builtAt:
booleanAdd built at time information.
cached:
booleanAdd information about cached (not built) modules (deprecated: use 'cachedModules' instead).
cachedAssets:
booleanShow cached assets (setting this to
false
only shows emitted files).cachedModules:
booleanAdd information about cached (not built) modules.
children:
boolean | "none" | "verbose" | "summary" | "errors-only" | "errors-warnings" | "minimal" | "normal" | "detailed" | StatsOptions | StatsValue[]Add children information.
chunkGroupAuxiliary:
booleanDisplay auxiliary assets in chunk groups.
chunkGroupChildren:
booleanDisplay children of chunk groups.
chunkGroupMaxAssets:
numberLimit of assets displayed in chunk groups.
chunkGroups:
booleanDisplay all chunk groups with the corresponding bundles.
chunkModules:
booleanAdd built modules information to chunk information.
chunkModulesSpace:
numberSpace to display chunk modules (groups will be collapsed to fit this space, value is in number of modules/group).
chunkOrigins:
booleanAdd the origins of chunks and chunk merging info.
chunkRelations:
booleanAdd information about parent, children and sibling chunks to chunk information.
chunks:
booleanAdd chunk information.
chunksSort:
string | falseSort the chunks by that field.
colors:
boolean | { bold?: string; cyan?: string; green?: string; magenta?: string; red?: string; yellow?: string }Enables/Disables colorful output.
context:
stringContext directory for request shortening.
dependentModules:
booleanShow chunk modules that are dependencies of other modules of the chunk.
depth:
booleanAdd module depth in module graph.
entrypoints:
boolean | "auto"Display the entry points with the corresponding bundles.
env:
booleanAdd --env information.
errorCause:
boolean | "auto"Add cause to errors.
errorDetails:
boolean | "auto"Add details to errors (like resolving log).
errorErrors:
boolean | "auto"Add nested errors to errors (like in AggregateError).
errors:
booleanAdd errors.
errorsCount:
booleanAdd errors count.
errorsSpace:
numberSpace to display errors (value is in number of lines).
errorStack:
booleanAdd internal stack trace to errors.
exclude:
string | boolean | RegExp | ModuleFilterItemTypes[] | ((name: string, module: StatsModule, type: "module" | "chunk" | "root-of-chunk" | "nested") => boolean)Please use excludeModules instead.
excludeAssets:
string | RegExp | AssetFilterItemTypes[] | ((name: string, asset: StatsAsset) => boolean)Suppress assets that match the specified filters. Filters can be Strings, RegExps or Functions.
excludeModules:
string | boolean | RegExp | ModuleFilterItemTypes[] | ((name: string, module: StatsModule, type: "module" | "chunk" | "root-of-chunk" | "nested") => boolean)Suppress modules that match the specified filters. Filters can be Strings, RegExps, Booleans or Functions.
groupAssetsByChunk:
booleanGroup assets by how their are related to chunks.
groupAssetsByEmitStatus:
booleanGroup assets by their status (emitted, compared for emit or cached).
groupAssetsByExtension:
booleanGroup assets by their extension.
groupAssetsByInfo:
booleanGroup assets by their asset info (immutable, development, hotModuleReplacement, etc).
groupAssetsByPath:
booleanGroup assets by their path.
groupModulesByAttributes:
booleanGroup modules by their attributes (errors, warnings, assets, optional, orphan, or dependent).
groupModulesByCacheStatus:
booleanGroup modules by their status (cached or built and cacheable).
groupModulesByExtension:
booleanGroup modules by their extension.
groupModulesByLayer:
booleanGroup modules by their layer.
groupModulesByPath:
booleanGroup modules by their path.
groupModulesByType:
booleanGroup modules by their type.
groupReasonsByOrigin:
booleanGroup reasons by their origin module.
hash:
booleanAdd the hash of the compilation.
ids:
booleanAdd ids.
logging:
boolean | "error" | "warn" | "info" | "log" | "none" | "verbose"Add logging output.
Include debug logging of specified loggers (i. e. for plugins or loaders). Filters can be Strings, RegExps or Functions.
loggingTrace:
booleanAdd stack traces to logging output.
moduleAssets:
booleanAdd information about assets inside modules.
modules:
booleanAdd built modules information.
modulesSort:
string | falseSort the modules by that field.
modulesSpace:
numberSpace to display modules (groups will be collapsed to fit this space, value is in number of modules/groups).
moduleTrace:
booleanAdd dependencies and origin of warnings/errors.
nestedModules:
booleanAdd information about modules nested in other modules (like with module concatenation).
nestedModulesSpace:
numberSpace to display modules nested within other modules (groups will be collapsed to fit this space, value is in number of modules/group).
optimizationBailout:
booleanShow reasons why optimization bailed out for modules.
orphanModules:
booleanAdd information about orphan modules.
outputPath:
booleanAdd output path information.
performance:
booleanAdd performance hint flags.
providedExports:
booleanShow exports provided by modules.
publicPath:
booleanAdd public path information.
reasons:
booleanAdd information about the reasons why modules are included.
reasonsSpace:
numberSpace to display reasons (groups will be collapsed to fit this space).
relatedAssets:
booleanAdd information about assets that are related to other assets (like SourceMaps for assets).
runtime:
booleanAdd information about runtime modules (deprecated: use 'runtimeModules' instead).
runtimeModules:
booleanAdd information about runtime modules.
source:
booleanAdd the source code of modules.
timings:
booleanAdd timing information.
usedExports:
booleanShow exports used by modules.
version:
booleanAdd webpack version information.
warnings:
booleanAdd warnings.
warningsCount:
booleanAdd warnings count.
warningsFilter:
string | RegExp | WarningFilterItemTypes[] | ((warning: StatsError, warningString: string) => boolean)Suppress listing warnings that match the specified filters (they will still be counted). Filters can be Strings, RegExps or Functions.
warningsSpace:
numberSpace to display warnings (value is in number of lines).
Type:
KnownStatsAsset & Record<string, any>Type:
KnownStatsChunk & Record<string, any>Type:
KnownStatsChunkGroup & Record<string, any>Type:
KnownStatsChunkOrigin & Record<string, any>Type:
KnownStatsCompilation & Record<string, any>Type:
KnownStatsError & Record<string, any>Type:
KnownStatsLogging & Record<string, any>Type:
KnownStatsLoggingEntry & Record<string, any>Type:
KnownStatsModule & Record<string, any>Type:
KnownStatsModuleIssuer & Record<string, any>Type:
KnownStatsModuleReason & Record<string, any>Type:
KnownStatsModuleTraceDependency & Record<string, any>Type:
KnownStatsModuleTraceItem & Record<string, any>Type:
KnownStatsProfile & Record<string, any>Type:
boolean | StatsOptions | "none" | "summary" | "errors-only" | "errors-warnings" | "minimal" | "normal" | "detailed" | "verbose"