These types are not exported by webpack, but they are available to TypeScript consumers.
Specify options for each generator.
asset{AssetGeneratorOptions} Generator options for asset modules.asset/bytes{EmptyGeneratorOptions} No generator options are supported for this module type.asset/inline{AssetInlineGeneratorOptions} Generator options for asset/inline modules.asset/resource{AssetResourceGeneratorOptions} Generator options for asset/resource modules.asset/source{EmptyGeneratorOptions} No generator options are supported for this module type.css{CssGeneratorOptions} Generator options for css modules.css/auto{CssModuleGeneratorOptions} Generator options for css/module modules.css/global{CssModuleGeneratorOptions} Generator options for css/module modules.css/module{CssModuleGeneratorOptions} Generator options for css/module modules.javascript{EmptyGeneratorOptions} 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.json{JsonGeneratorOptions} Generator options for json modules.
Options affecting the normal modules (NormalModuleFactory).
Attributes
defaultRules:
<"...">
|
<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'.
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'.
generator:
{GeneratorOptionsByModuleType} Specify options for each generator.
Don't parse files matching. It's matched against the full resolved request.
parser:
{ParserOptionsByModuleType} Specify options for each parser.
rules:
<"...">
|
<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'.
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'.
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'.
Specify options for each parser.
asset{AssetParserOptions} 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.css{CssParserOptions} Parser options for css modules.css/auto{CssModuleParserOptions} Parser options for css/module modules.css/global{CssModuleParserOptions} Parser options for css/module modules.css/module{CssModuleParserOptions} Parser options for css/module modules.javascript{JavascriptParserOptions} Parser options for javascript modules.javascript/auto{JavascriptParserOptions} Parser options for javascript modules.javascript/dynamic{JavascriptParserOptions} Parser options for javascript modules.javascript/esm{JavascriptParserOptions} Parser options for javascript modules.json{JsonParserOptions} Parser options for JSON modules.