These types are not exported by webpack, but they are available to TypeScript consumers.
Attributes
Parser options for css/auto and css/module modules.
Attributes
animation:
booleanEnable/disable renaming of
@keyframes
.container:
booleanEnable/disable renaming of
@container
names.customIdents:
booleanEnable/disable renaming of custom identifiers.
dashedIdents:
booleanEnable/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:
booleanEnable/disable renaming of
@function
names.grid:
booleanEnable/disable renaming of grid identifiers.
import:
booleanEnable/disable
@import
at-rules handling.namedExports:
booleanUse ES modules named export for css exports.
pure:
booleanEnable strict pure mode: every selector must contain at least one local class or id selector.
url:
booleanEnable/disable
url()
/
image-set()
/
src()
/
image()
functions handling.Generator options for css/module modules.
Attributes
esModule:
booleanConfigure 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:
booleanAvoid 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:
stringDigest types used for the hash.
localIdentHashDigestLength:
numberNumber of chars which are used for the hash.
Algorithm used for generation the hash (see node.js crypto package).
localIdentHashSalt:
stringAny string which is added to the hash to salt it.
localIdentName:
string | TemplatePathFn<PathDataModule>Configure the generated local ident name.
Parser options for css/global modules.
Attributes
animation:
booleanEnable/disable renaming of
@keyframes
.container:
booleanEnable/disable renaming of
@container
names.customIdents:
booleanEnable/disable renaming of custom identifiers.
dashedIdents:
booleanEnable/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:
booleanEnable/disable renaming of
@function
names.grid:
booleanEnable/disable renaming of grid identifiers.
import:
booleanEnable/disable
@import
at-rules handling.namedExports:
booleanUse ES modules named export for css exports.
url:
booleanEnable/disable
url()
/
image-set()
/
src()
/
image()
functions handling.Specify options for each generator.
Attributes
asset:
AssetGeneratorOptionsGenerator options for asset modules.
asset/bytes:
EmptyGeneratorOptionsNo generator options are supported for this module type.
asset/inline:
AssetInlineGeneratorOptionsGenerator options for asset/inline modules.
asset/resource:
AssetResourceGeneratorOptionsGenerator options for asset/resource modules.
asset/source:
EmptyGeneratorOptionsNo generator options are supported for this module type.
Generator options for css modules.
css/auto:
CssModuleGeneratorOptionsGenerator options for css/module modules.
css/global:
CssModuleGeneratorOptionsGenerator options for css/module modules.
css/module:
CssModuleGeneratorOptionsGenerator options for css/module modules.
html:
HtmlGeneratorOptionsGenerator options for html modules.
javascript:
EmptyGeneratorOptionsNo generator options are supported for this module type.
javascript/auto:
EmptyGeneratorOptionsNo generator options are supported for this module type.
javascript/dynamic:
EmptyGeneratorOptionsNo generator options are supported for this module type.
javascript/esm:
EmptyGeneratorOptionsNo generator options are supported for this module type.
json:
JsonGeneratorOptionsGenerator options for json modules.
Specify options for each generator.
Attributes
Returns array of values.
Attributes
assets:
string[]buildTimeExecuted:
booleanbuilt:
booleancacheable:
booleancached:
booleanchunks:
ChunkId[]codeGenerated:
booleandependent:
booleandepth:
number | nullerrors:
numberfailed:
booleanfilteredModules:
numberidentifier:
stringindex:
numberindex2:
numberissuer:
string | nullissuerName:
string | nullissuerPath:
StatsModuleIssuer[] | nulllayer:
string | nullmodules:
StatsModule[]moduleType:
stringname:
stringnameForCondition:
string | nulloptimizationBailout:
string[]optional:
booleanorphan:
booleanpostOrderIndex:
numberpreOrderIndex:
numberprofile:
StatsProfileprovidedExports:
string[] | nullreasons:
StatsModuleReason[]size:
numbersource:
string | Buffer<ArrayBufferLike>type:
stringwarnings:
numberReturns array of values.
Attributes
Returns array of values.
Attributes
Returns array of values.
Attributes
Attributes
context:
stringcontextInfo:
ModuleFactoryCreateDataContextInfodependencies:
Dependency[]resolveOptions:
ResolveOptionsAttributes
Attributes
Attributes
absoluteResourcePath:
stringthe absolute resource path of the module request
allLoaders:
stringthe all loaders of the module request
hash:
stringthe hash of the module identifier
identifier:
stringthe identifier of the module
loaders:
stringthe loaders of the module request
moduleId:
stringthe module id of the module
namespace:
stringthe module namespace
query:
stringthe query of the module identifier
resource:
stringthe resource of the module request
resourcePath:
stringthe resource path of the module request
shortIdentifier:
stringthe 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:
booleanEnable warnings for full dynamic dependencies.
exprContextRecursive:
booleanEnable recursive directory lookup for full dynamic dependencies. Deprecated: This option has moved to 'module.parser.javascript.exprContextRecursive'.
Sets the default regular expression for full dynamic dependencies. Deprecated: This option has moved to 'module.parser.javascript.exprContextRegExp'.
exprContextRequest:
stringSet the default request for full dynamic dependencies. Deprecated: This option has moved to 'module.parser.javascript.exprContextRequest'.
generator:
GeneratorOptionsByModuleTypeSpecify 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.
parser:
ParserOptionsByModuleTypeSpecify options for each parser.
rules:
(false | "" | 0 | "..." | RuleSetRule | null | undefined)[]An array of rules applied for modules.
strictExportPresence:
booleanEmit errors instead of warnings when imported names don't exist in imported module. Deprecated: This option has moved to 'module.parser.javascript.strictExportPresence'.
strictThisContextOnImports:
booleanHandle the this context correctly according to the spec for namespace objects. Deprecated: This option has moved to 'module.parser.javascript.strictThisContextOnImports'.
unknownContextCritical:
booleanEnable warnings when using the require function in a not statically analyse-able way. Deprecated: This option has moved to 'module.parser.javascript.unknownContextCritical'.
unknownContextRecursive:
booleanEnable 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'.
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:
stringSets the request when using the require function in a not statically analyse-able way. Deprecated: This option has moved to 'module.parser.javascript.unknownContextRequest'.
wrappedContextCritical:
booleanEnable warnings for partial dynamic dependencies. Deprecated: This option has moved to 'module.parser.javascript.wrappedContextCritical'.
wrappedContextRecursive:
booleanEnable recursive directory lookup for partial dynamic dependencies. Deprecated: This option has moved to 'module.parser.javascript.wrappedContextRecursive'.
wrappedContextRegExp:
RegExpSet 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.
generator:
GeneratorOptionsByModuleTypeSpecify 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.
parser:
ParserOptionsByModuleTypeSpecify options for each parser.
rules:
(false | "" | 0 | "..." | RuleSetRule | null | undefined)[]An array of rules applied for modules.
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
factory:
booleantrue: renders as factory method, false: pure module content
inlinedInIIFE:
booleanthe inlined entry module is wrapped in an IIFE, existing only when
factory
is set to falsemoduleGraph:
ModuleGraphthe module graph
renderInObject:
booleanrender module in object container
runtimeTemplate:
RuntimeTemplatethe runtime template
strictMode:
booleanrendering in strict context
Attributes
Attributes
extractSourceMap:
booleanEnable/Disable extracting source map.
layer:
stringSpecifies the layer in which the module should be placed in.
resolve:
ResolveOptionsOptions for the resolver.
sideEffects:
booleanFlags a module as with or without side effects.
type:
stringModule 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:
stringcontext directory for resolving
extractSourceMap:
booleanenable/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:
stringan optional layer in which the module is
loaders:
LoaderItem[]list of loaders
matchResource:
stringpath + 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:
stringrequest without resolving
request:
stringrequest string
resolveOptions:
ResolveOptionsoptions used for resolving requests from this module
resource:
stringpath + query of the real resource
resourceResolveData:
ResourceSchemeData & Partial<ResolveRequest>resource resolve data
type:
Tmodule type. When deserializing, this is set to an empty string "".
userRequest:
stringrequest intended by user (without loaders from config)
Specify options for each parser.
Attributes
asset:
AssetParserOptionsParser options for asset modules.
asset/bytes:
EmptyParserOptionsNo parser options are supported for this module type.
asset/inline:
EmptyParserOptionsNo parser options are supported for this module type.
asset/resource:
EmptyParserOptionsNo parser options are supported for this module type.
asset/source:
EmptyParserOptionsNo parser options are supported for this module type.
css:
CssParserOptionsParser options for css modules.
css/auto:
CssAutoOrModuleParserOptionsParser options for css/auto and css/module modules.
css/global:
CssModuleParserOptionsParser options for css/global modules.
css/module:
CssAutoOrModuleParserOptionsParser options for css/auto and css/module modules.
javascript:
JavascriptParserOptionsParser options for javascript modules.
javascript/auto:
JavascriptParserOptionsParser options for javascript modules.
javascript/dynamic:
JavascriptParserOptionsParser options for javascript modules.
javascript/esm:
JavascriptParserOptionsParser options for javascript modules.
json:
JsonParserOptionsParser options for JSON modules.
Specify options for each parser.
Attributes
Attributes
chunk:
Chunkthe chunk
chunkGraph:
ChunkGraphthe chunk graph
codeGenerationResults:
CodeGenerationResultsresults of code generation
dependencyTemplates:
DependencyTemplatesthe dependency templates
moduleGraph:
ModuleGraphthe module graph
runtimeTemplate:
RuntimeTemplatethe runtime template
strictMode:
booleanrendering in strict context
Type:
string | ((context: ModuleFilenameTemplateContext) => string)Type:
string | RegExp | ((name: string, module: StatsModule, type: "module" | "chunk" | "root-of-chunk" | "nested") => boolean)Type:
PathData & { chunkGraph: ChunkGraph; module: Module | ModulePathData }Attributes
chunkGraph:
ChunkGraphmodule:
Module | ModulePathData