On this page

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

A rule description with conditions and effects for modules.

Attributes
assert:<object>
Match on import assertions of the dependency.
Match the child compiler name.
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.
Shortcut for resource.exclude.
extractSourceMap:<boolean>
Enable/Disable extracting source map.
generator:<object>
The options for the module generator.
Shortcut for resource.include.
Match the issuer of the module (The module pointing to this module).
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.
Match module mimetype when load from Data URI.
Only execute the first matching rule in this array.
options:<string> | <object>
Shortcut for use.options.
parser:<object>
Options for parsing.
Match the real resource path of the module.
Options for the resolver.
Match the resource path of the module.
Match the resource fragment of the module.
Match the resource query of the module.
Match and execute these rules when this rule is matched.
Match module scheme.
sideEffects:<boolean>
Flags a module as with or without side effects.
Shortcut for resource.test.
Module type to use for the module.
Modifiers applied to the module when rule is matched.
Match on import attributes of the dependency.



<string>


<undefined> | <null> | <string> | <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.