A rule description with conditions and effects for modules.
Attributes
assert:
<object>Match on import assertions of the dependency.
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.
oneOf:
{false|""|0|RuleSetRule[]} Only execute the first matching rule in this array.
parser:
<object>Options for parsing.
resolve:
{ResolveOptions} Options for the resolver.
rules:
{false|""|0|RuleSetRule[]} Match and execute these rules when this rule is matched.
sideEffects:
<boolean>Flags a module as with or without side effects.
type:
<string>Module type to use for the module.
use:
<string>
|
<string>
|
<object[]>
|
<object>Modifiers applied to the module when rule is matched.
with:
<object>Match on import attributes of the dependency.
Type:
<string>
|
<undefined>
|
<null>
|
<string>
|
<object[]>
|
<object><undefined> | <null> | <string> | <object[]>
{RuleSetUseFunction}
Attributes
data{EffectData}- Returns:
<string>|<object>|<undefined>|<null>|<string>|<object[]>
{RuleSetUseFunction}
Attributes