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.
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.
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.
sideEffects:<boolean>
Flags a module as with or without side effects.
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.