On this page

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

Attributes
execute the rule set
references:<Map>
< <string> , <RuleSetLoaderOptions> > map of references in the rule set (may grow over time)

Logic operators used in a condition matcher.

Attributes

Logic operators used in a condition matcher.

Attributes

A rule description with conditions and effects for modules.

Attributes
assert:<object>
Match on import assertions of the dependency.
[] Match the child compiler name.
[] | <object> Match dependency type.
descriptionData:<object>
Match values of properties in the description file (usually package.json).
enforce:
<"pre"> | <"post"> Enforce this rule as pre or post step.
extractSourceMap:<boolean>
Enable/Disable extracting source map.
generator:<object>
The options for the module generator.
[] | <object> Match the issuer of the module (The module pointing to this module).
[] | <object> Match layer of the issuer of this module (The module pointing to this module).
layer:<string>
Specifies the layer in which the module should be placed in.
loader:<string>
Shortcut for use.loader.
[] | <object> Match module mimetype when load from Data URI.
oneOf:
<false> | <""> | <0> | <RuleSetRule> | <null> | <undefined> [] Only execute the first matching rule in this array.
options:<string> | <object>
Shortcut for use.options.
parser:<object>
Options for parsing.
[] | <object> Match the import phase of the dependency.
[] | <object> Match the real resource path of the module.
Options for the resolver.
[] | <object> Match the resource path of the module.
[] | <object> Match the resource fragment of the module.
[] | <object> Match the resource query of the module.
rules:
<false> | <""> | <0> | <RuleSetRule> | <null> | <undefined> [] Match and execute these rules when this rule is matched.
sideEffects:<boolean>
Flags a module as with or without side effects.
Module type to use for the module.
[] | <object> Modifiers applied to the module when rule is matched.
Match on import attributes of the dependency.




<string>


<undefined> | <null> | <string> | <false> | <0> | <RuleSetUseFunction> | <object>[]


<RuleSetUseFunction>


<object>

Attributes
ident:<string>
Unique loader options identifier.
loader:<string>
Loader name.
options:<string> | <object>
Loader options.



<string>


<RuleSetUseFunction>


<object>

Attributes
ident:<string>
Unique loader options identifier.
loader:<string>
Loader name.
options:<string> | <object>
Loader options.