These types are not exported by webpack, but they are available to TypeScript consumers.
Attributes
exec:
<object>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.
compiler:
<string>
|
<RegExp>
|
<RuleSetLogicalConditions>
|
<object>
|
<RuleSetCondition>[] Match the child compiler name.
dependency:
<string>
|
<RegExp>
|
<RuleSetLogicalConditions>
|
<RuleSetCondition>[] |
<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.exclude:
<string>
|
<RegExp>
|
<RuleSetLogicalConditionsAbsolute>
|
<object>
|
<RuleSetConditionAbsolute>[] Shortcut for resource.exclude.
extractSourceMap:
<boolean>Enable/Disable extracting source map.
generator:
<object>The options for the module generator.
[] |
<object>
Shortcut for resource.include.[] |
<object>
Match the issuer of the module (The module pointing to this module).issuerLayer:
<string>
|
<RegExp>
|
<RuleSetLogicalConditions>
|
<RuleSetCondition>[] |
<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.
mimetype:
<string>
|
<RegExp>
|
<RuleSetLogicalConditions>
|
<RuleSetCondition>[] |
<object>
Match module mimetype when load from Data URI.oneOf:
<false>
|
<"">
|
<0>
|
<RuleSetRule>
|
<null>
|
<undefined>
[] Only execute the first matching rule in this array.parser:
<object>Options for parsing.
phase:
<string>
|
<RegExp>
|
<RuleSetLogicalConditions>
|
<RuleSetCondition>[] |
<object>
Match the import phase of the dependency.realResource:
<string>
|
<RegExp>
|
<RuleSetLogicalConditionsAbsolute>
|
<RuleSetConditionAbsolute>[] |
<object>
Match the real resource path of the module.resolve:
<ResolveOptions>Options for the resolver.
[] |
<object>
Match the resource path of the module.resourceFragment:
<string>
|
<RegExp>
|
<RuleSetLogicalConditions>
|
<RuleSetCondition>[] |
<object>
Match the resource fragment of the module.resourceQuery:
<string>
|
<RegExp>
|
<RuleSetLogicalConditions>
|
<RuleSetCondition>[] |
<object>
Match the resource query of the module.rules:
<false>
|
<"">
|
<0>
|
<RuleSetRule>
|
<null>
|
<undefined>
[] Match and execute these rules when this rule is matched.scheme:
<string>
|
<RegExp>
|
<RuleSetLogicalConditions>
|
<RuleSetCondition>[] |
<object>
Match module scheme.sideEffects:
<boolean>Flags a module as with or without side effects.
[] |
<object>
Shortcut for resource.test.type:
<string>Module type to use for the module.
use:
<string>
|
<RuleSetUseFunction>
|
<string>
|
<false>
|
<0>
|
<RuleSetUseFunction>
|
<object>
|
<null>
|
<undefined>[] |
<object>
Modifiers applied to the module when rule is matched.with:
<object>Match on import attributes of the dependency.
Type:
<string>
|
<RegExp>
|
<object>
|
<RuleSetLogicalConditions>
|
<RuleSetCondition>[]
Type:
<string>
|
<RegExp>
|
<object>
|
<RuleSetLogicalConditionsAbsolute>
|
<RuleSetConditionAbsolute>[]
Type:
<string>
|
<RegExp>
|
<object>
|
<RuleSetLogicalConditions>
|
<RuleSetCondition>[]
Type:
<string>
|
<undefined>
|
<null>
|
<string>
|
<false>
|
<0>
|
<RuleSetUseFunction>
|
<object>[] |
<RuleSetUseFunction>
|
<object><undefined> | <null> | <string> | <false> | <0> | <RuleSetUseFunction> | <object>[]
Attributes
data{EffectData}- Returns:
<string>|<RuleSetUseFunction>|<object>|<undefined>|<null>|<string>|<false>|<0>|<RuleSetUseFunction>|<object>[]
data{EffectData}- Returns:
<string>|<RuleSetUseFunction>|<object>|<undefined>|<null>|<string>|<false>|<0>|<RuleSetUseFunction>|<object>[]
Type:
<string>
|
<RuleSetUseFunction>
|
<object>Attributes