On this page

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


Attributes
resolveOptions:ResolveOptions
resource:string | false | string[]
resourceFragment:string
resourceQuery:string

Parser options for css/auto and css/module modules.

Attributes
animation:boolean
Enable/disable renaming of @keyframes .
container:boolean
Enable/disable renaming of @container names.
customIdents:boolean
Enable/disable renaming of custom identifiers.
dashedIdents:boolean
Enable/disable renaming of dashed identifiers, e. g. custom properties.
exportType:"link" | "text" | "css-style-sheet" | "style"
Configure how CSS content is exported as default.
function:boolean
Enable/disable renaming of @function names.
grid:boolean
Enable/disable renaming of grid identifiers.
import:boolean
Enable/disable @import at-rules handling.
namedExports:boolean
Use ES modules named export for css exports.
pure:boolean
Enable strict pure mode: every selector must contain at least one local class or id selector.
Enable/disable url() / image-set() / src() / image() functions handling.

Generator options for css/module modules.

Attributes
esModule:boolean
Configure the generated JS modules that use the ES modules syntax.
exportsConvention:"camel-case" | "camel-case-only" | "dashes" | "dashes-only" | "as-is" | ((name: string) => string | string[])
Specifies the convention of exported names.
exportsOnly:boolean
Avoid generating and loading a stylesheet and only embed exports from css into output javascript files.
exportType:"link" | "text" | "css-style-sheet" | "style"
Configure how CSS content is exported as default.
localIdentHashDigest:string
Digest types used for the hash.
localIdentHashDigestLength:number
Number of chars which are used for the hash.
localIdentHashFunction:string | typeof Hash
Algorithm used for generation the hash (see node.js crypto package).
localIdentHashSalt:string
Any string which is added to the hash to salt it.
Configure the generated local ident name.

Parser options for css/global modules.

Attributes
animation:boolean
Enable/disable renaming of @keyframes .
container:boolean
Enable/disable renaming of @container names.
customIdents:boolean
Enable/disable renaming of custom identifiers.
dashedIdents:boolean
Enable/disable renaming of dashed identifiers, e. g. custom properties.
exportType:"link" | "text" | "css-style-sheet" | "style"
Configure how CSS content is exported as default.
function:boolean
Enable/disable renaming of @function names.
grid:boolean
Enable/disable renaming of grid identifiers.
import:boolean
Enable/disable @import at-rules handling.
namedExports:boolean
Use ES modules named export for css exports.
Enable/disable url() / image-set() / src() / image() functions handling.

Specify options for each generator.

Attributes
Generator options for asset modules.
No generator options are supported for this module type.
Generator options for asset/inline modules.
Generator options for asset/resource modules.
No generator options are supported for this module type.
Generator options for css modules.
Generator options for css/module modules.
Generator options for css/module modules.
Generator options for css/module modules.
Generator options for html modules.
No generator options are supported for this module type.
javascript/auto:EmptyGeneratorOptions
No generator options are supported for this module type.
javascript/dynamic:EmptyGeneratorOptions
No generator options are supported for this module type.
javascript/esm:EmptyGeneratorOptions
No generator options are supported for this module type.
Generator options for json modules.

Specify options for each generator.


Attributes
baseUri:string
target base uri
layer:string
the target layer
publicPath:string
the target public path

Returns array of values.

Attributes
assets:string[]
buildTimeExecuted:boolean
built:boolean
cacheable:boolean
cached:boolean
chunks:ChunkId[]
codeGenerated:boolean
dependent:boolean
depth:number | null
errors:number
failed:boolean
filteredModules:number
identifier:string
index:number
index2:number
issuer:string | null
issuerId:string | number | null
issuerName:string | null
issuerPath:StatsModuleIssuer[] | null
layer:string | null
modules:StatsModule[]
moduleType:string
name:string
nameForCondition:string | null
optimizationBailout:string[]
optional:boolean
orphan:boolean
postOrderIndex:number
preOrderIndex:number
profile:StatsProfile
providedExports:string[] | null
size:number
sizes:Record<string, number>
source:string | Buffer<ArrayBufferLike>
type:string
usedExports:boolean | string[] | null
warnings:number

Returns array of values.

Attributes
identifier:string
name:string
profile:StatsProfile

Returns array of values.

Attributes
active:boolean
explanation:string | null
loc:string | null
module:string | null
moduleId:string | number | null
moduleIdentifier:string | null
moduleName:string | null
resolvedModule:string | null
resolvedModuleId:string | number | null
resolvedModuleIdentifier:string | null
type:string | null
userRequest:string | null

Returns array of values.

Attributes
moduleId:string | number
moduleIdentifier:string
moduleName:string
originId:string | number
originIdentifier:string
originName:string

Attributes
context:string
dependencies:Dependency[]
resolveOptions:ResolveOptions

Attributes
compiler:string
issuer:string
issuerLayer:IssuerLayer

Attributes
cacheable:boolean
allow to use the unsafe cache
contextDependencies:Set<string>
fileDependencies:Set<string>
missingDependencies:Set<string>
module:Module
the created module or unset if no module was created

Attributes
absoluteResourcePath:string
the absolute resource path of the module request
allLoaders:string
the all loaders of the module request
hash:string
the hash of the module identifier
identifier:string
the identifier of the module
loaders:string
the loaders of the module request
moduleId:string
the module id of the module
namespace:string
the module namespace
query:string
the query of the module identifier
resource:string
the resource of the module request
resourcePath:string
the resource path of the module request
shortIdentifier:string
the shortened identifier of the module

Options affecting the normal modules (NormalModuleFactory).

Attributes
defaultRules:(false | "" | 0 | "..." | RuleSetRule | null | undefined)[]
An array of rules applied by default for modules.
exprContextCritical:boolean
Enable warnings for full dynamic dependencies.
exprContextRecursive:boolean
Enable recursive directory lookup for full dynamic dependencies. Deprecated: This option has moved to 'module.parser.javascript.exprContextRecursive'.
exprContextRegExp:boolean | RegExp
Sets the default regular expression for full dynamic dependencies. Deprecated: This option has moved to 'module.parser.javascript.exprContextRegExp'.
exprContextRequest:string
Set the default request for full dynamic dependencies. Deprecated: This option has moved to 'module.parser.javascript.exprContextRequest'.
Specify options for each generator.
noParse:string | RegExp | ((content: string) => boolean) | (string | RegExp | ((content: string) => boolean))[]
Don't parse files matching. It's matched against the full resolved request.
Specify options for each parser.
rules:(false | "" | 0 | "..." | RuleSetRule | null | undefined)[]
An array of rules applied for modules.
strictExportPresence:boolean
Emit errors instead of warnings when imported names don't exist in imported module. Deprecated: This option has moved to 'module.parser.javascript.strictExportPresence'.
strictThisContextOnImports:boolean
Handle the this context correctly according to the spec for namespace objects. Deprecated: This option has moved to 'module.parser.javascript.strictThisContextOnImports'.
unknownContextCritical:boolean
Enable warnings when using the require function in a not statically analyse-able way. Deprecated: This option has moved to 'module.parser.javascript.unknownContextCritical'.
unknownContextRecursive:boolean
Enable recursive directory lookup when using the require function in a not statically analyse-able way. Deprecated: This option has moved to 'module.parser.javascript.unknownContextRecursive'.
unknownContextRegExp:boolean | RegExp
Sets the regular expression when using the require function in a not statically analyse-able way. Deprecated: This option has moved to 'module.parser.javascript.unknownContextRegExp'.
unknownContextRequest:string
Sets the request when using the require function in a not statically analyse-able way. Deprecated: This option has moved to 'module.parser.javascript.unknownContextRequest'.
unsafeCache:boolean | ((module: Module) => boolean)
Cache the resolving of module requests.
wrappedContextCritical:boolean
Enable warnings for partial dynamic dependencies. Deprecated: This option has moved to 'module.parser.javascript.wrappedContextCritical'.
wrappedContextRecursive:boolean
Enable recursive directory lookup for partial dynamic dependencies. Deprecated: This option has moved to 'module.parser.javascript.wrappedContextRecursive'.
wrappedContextRegExp:RegExp
Set the inner regular expression for partial dynamic dependencies. Deprecated: This option has moved to 'module.parser.javascript.wrappedContextRegExp'.

Options affecting the normal modules (NormalModuleFactory).

Attributes
defaultRules:(false | "" | 0 | "..." | RuleSetRule | null | undefined)[]
An array of rules applied by default for modules.
Specify options for each generator.
noParse:string | RegExp | ((content: string) => boolean) | (string | RegExp | ((content: string) => boolean))[]
Don't parse files matching. It's matched against the full resolved request.
Specify options for each parser.
rules:(false | "" | 0 | "..." | RuleSetRule | null | undefined)[]
An array of rules applied for modules.
unsafeCache:boolean | ((module: Module) => boolean)
Cache the resolving of module requests.

Attributes
hash:string
hashWithLength:(length: number) => 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
factory:boolean
true: renders as factory method, false: pure module content
inlinedInIIFE:boolean
the inlined entry module is wrapped in an IIFE, existing only when factory is set to false
moduleGraph:ModuleGraph
the module graph
renderInObject:boolean
render module in object container
runtimeTemplate:RuntimeTemplate
the runtime template
strictMode:boolean
rendering in strict context

Attributes
active:boolean
client:string
data:string

Attributes
extractSourceMap:boolean
Enable/Disable extracting source map.
generator:{ [index: string]: any }
The options for the module generator.
layer:string
Specifies the layer in which the module should be placed in.
parser:{ [index: string]: any }
Options for parsing.
Options for the resolver.
sideEffects:boolean
Flags a module as with or without side effects.
type:string
Module type to use for the module.

Attributes
beforeLoaders:SyncHook<[LoaderItem[], NormalModule, AnyLoaderContext]>
beforeParse:SyncHook<[NormalModule]>
beforeSnapshot:SyncHook<[NormalModule]>
loader:SyncHook<[AnyLoaderContext, NormalModule]>
needBuild:AsyncSeriesBailHook<[NormalModule, NeedBuildContext], boolean>
processResult:SyncWaterfallHook<[[string | Buffer<ArrayBufferLike>, string | RawSourceMap | undefined, PreparsedAst | undefined], NormalModule], [string | Buffer<ArrayBufferLike>, string | RawSourceMap | undefined, PreparsedAst | undefined]>
readResource:HookMap<AsyncSeriesBailHook<[AnyLoaderContext], string | Buffer<ArrayBufferLike> | null, UnsetAdditionalOptions>>
readResourceForScheme:HookMap<FakeHook<AsyncSeriesBailHook<[string, NormalModule], string | Buffer<ArrayBufferLike> | null, UnsetAdditionalOptions>>>

Attributes
context:string
context directory for resolving
extractSourceMap:boolean
enable/disable extracting source map
generator:(Record<"javascript/auto", JavascriptGenerator> & Record<"javascript/dynamic", JavascriptGenerator> & Record<"javascript/esm", JavascriptGenerator> & Record<"json", JsonGenerator> & Record<"asset", AssetGenerator> & Record<"asset/inline", AssetGenerator> & Record<"asset/resource", AssetGenerator> & Record<"asset/source", AssetSourceGenerator> & Record<"asset/bytes", AssetBytesGenerator> & Record<"webassembly/async", Generator> & Record<"webassembly/sync", Generator> & Record<"css", CssGenerator> & Record<"css/auto", CssGenerator> & Record<"css/module", CssGenerator> & Record<"css/global", CssGenerator> & Record<"html", HtmlGenerator> & Record<string, Generator>)[T]
the generator used
generatorOptions:(Record<"javascript/auto", EmptyGeneratorOptions> & Record<"javascript/dynamic", EmptyGeneratorOptions> & Record<"javascript/esm", EmptyGeneratorOptions> & Record<"json", JsonGeneratorOptions> & Record<"asset", AssetGeneratorOptions> & Record<"asset/inline", AssetGeneratorOptions> & Record<"asset/resource", AssetGeneratorOptions> & Record<"asset/source", EmptyGeneratorOptions> & Record<"asset/bytes", EmptyGeneratorOptions> & Record<"webassembly/async", EmptyGeneratorOptions> & Record<"webassembly/sync", EmptyGeneratorOptions> & Record<"css", CssGeneratorOptions> & Record<"css/auto", CssModuleGeneratorOptions> & Record<"css/module", CssModuleGeneratorOptions> & Record<"css/global", CssModuleGeneratorOptions> & Record<"html", HtmlGeneratorOptions> & Record<string, GeneratorOptions>)[T]
the options of the generator used
layer:string
an optional layer in which the module is
loaders:LoaderItem[]
list of loaders
matchResource:string
path + query of the matched resource (virtual)
parser:(Record<"javascript/auto", JavascriptParser> & Record<"javascript/dynamic", JavascriptParser> & Record<"javascript/esm", JavascriptParser> & Record<"json", JsonParser> & Record<"asset", AssetParser> & Record<"asset/inline", AssetParser> & Record<"asset/resource", AssetParser> & Record<"asset/source", AssetSourceParser> & Record<"asset/bytes", AssetBytesParser> & Record<"webassembly/async", AsyncWebAssemblyParser> & Record<"webassembly/sync", WebAssemblyParser> & Record<"css", CssParser> & Record<"css/auto", CssParser> & Record<"css/module", CssParser> & Record<"css/global", CssParser> & Record<"html", HtmlParser> & Record<string, Parser>)[T]
the parser used
parserOptions:(Record<"javascript/auto", JavascriptParserOptions> & Record<"javascript/dynamic", JavascriptParserOptions> & Record<"javascript/esm", JavascriptParserOptions> & Record<"json", JsonParserOptions> & Record<"asset", AssetParserOptions> & Record<"asset/inline", EmptyParserOptions> & Record<"asset/resource", EmptyParserOptions> & Record<"asset/source", EmptyParserOptions> & Record<"asset/bytes", EmptyParserOptions> & Record<"webassembly/async", EmptyParserOptions> & Record<"webassembly/sync", EmptyParserOptions> & Record<"css", CssParserOptions> & Record<"css/auto", CssModuleParserOptions> & Record<"css/module", CssModuleParserOptions> & Record<"css/global", CssModuleParserOptions> & Record<"html", EmptyParserOptions> & Record<string, ParserOptions>)[T]
the options of the parser used
rawRequest:string
request without resolving
request:string
request string
resolveOptions:ResolveOptions
options used for resolving requests from this module
resource:string
path + query of the real resource
resourceResolveData:ResourceSchemeData & Partial<ResolveRequest>
resource resolve data
type:T
module type. When deserializing, this is set to an empty string "".
userRequest:string
request intended by user (without loaders from config)

Specify options for each parser.

Attributes
Parser options for asset modules.
asset/bytes:EmptyParserOptions
No parser options are supported for this module type.
asset/inline:EmptyParserOptions
No parser options are supported for this module type.
asset/resource:EmptyParserOptions
No parser options are supported for this module type.
asset/source:EmptyParserOptions
No parser options are supported for this module type.
Parser options for css modules.
Parser options for css/auto and css/module modules.
Parser options for css/global modules.
Parser options for css/auto and css/module modules.
Parser options for javascript modules.
javascript/auto:JavascriptParserOptions
Parser options for javascript modules.
javascript/dynamic:JavascriptParserOptions
Parser options for javascript modules.
Parser options for javascript modules.
Parser options for JSON modules.

Specify options for each parser.


Attributes
byIdentifier:Record<string, number>
usedIds:number[]

Attributes
chunk:Chunk
the chunk
chunkGraph:ChunkGraph
the chunk graph
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




Type:string | RegExp | ((name: string, module: StatsModule, type: "module" | "chunk" | "root-of-chunk" | "nested") => boolean)

Type:string | number


Type:PathData & { chunkGraph: ChunkGraph; module: Module | ModulePathData }
Attributes
chunkGraph:ChunkGraph