These types are not exported by webpack, but they are available to TypeScript consumers.
Logic operators used in a condition matcher.
Attributes
and:
RuleSetCondition[]Logical AND.
not:
string | RegExp | RuleSetLogicalConditions | RuleSetCondition[] | ((value: string) => boolean)Logical NOT.
or:
RuleSetCondition[]Logical OR.
Logic operators used in a condition matcher.
Attributes
and:
RuleSetConditionAbsolute[]Logical AND.
not:
string | RegExp | RuleSetLogicalConditionsAbsolute | RuleSetConditionAbsolute[] | ((value: string) => boolean)Logical NOT.
Logical OR.
A rule description with conditions and effects for modules.
Attributes
assert:
{ [index: string]: RuleSetConditionOrConditions }Match on import assertions of the dependency.
compiler:
string | RegExp | RuleSetLogicalConditions | ((value: string) => boolean) | RuleSetCondition[]Match the child compiler name.
dependency:
string | RegExp | RuleSetLogicalConditions | RuleSetCondition[] | ((value: string) => boolean)Match dependency type.
descriptionData:
{ [index: string]: RuleSetConditionOrConditions }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 | ((value: string) => boolean) | RuleSetConditionAbsolute[]Shortcut for resource.exclude.
extractSourceMap:
booleanEnable/Disable extracting source map.
include:
string | RegExp | RuleSetLogicalConditionsAbsolute | RuleSetConditionAbsolute[] | ((value: string) => boolean)Shortcut for resource.include.
issuer:
string | RegExp | RuleSetLogicalConditionsAbsolute | RuleSetConditionAbsolute[] | ((value: string) => boolean)Match the issuer of the module (The module pointing to this module).
issuerLayer:
string | RegExp | RuleSetLogicalConditions | RuleSetCondition[] | ((value: string) => boolean)Match layer of the issuer of this module (The module pointing to this module).
layer:
stringSpecifies the layer in which the module should be placed in.
loader:
stringShortcut for use.loader.
mimetype:
string | RegExp | RuleSetLogicalConditions | RuleSetCondition[] | ((value: string) => boolean)Match module mimetype when load from Data URI.
oneOf:
(false | "" | 0 | RuleSetRule | null | undefined)[]Only execute the first matching rule in this array.
phase:
string | RegExp | RuleSetLogicalConditions | RuleSetCondition[] | ((value: string) => boolean)Match the import phase of the dependency.
realResource:
string | RegExp | RuleSetLogicalConditionsAbsolute | RuleSetConditionAbsolute[] | ((value: string) => boolean)Match the real resource path of the module.
resolve:
ResolveOptionsOptions for the resolver.
resource:
string | RegExp | RuleSetLogicalConditionsAbsolute | RuleSetConditionAbsolute[] | ((value: string) => boolean)Match the resource path of the module.
resourceFragment:
string | RegExp | RuleSetLogicalConditions | RuleSetCondition[] | ((value: string) => boolean)Match the resource fragment of the module.
resourceQuery:
string | RegExp | RuleSetLogicalConditions | RuleSetCondition[] | ((value: string) => boolean)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[] | ((value: string) => boolean)Match module scheme.
sideEffects:
booleanFlags a module as with or without side effects.
test:
string | RegExp | RuleSetLogicalConditionsAbsolute | RuleSetConditionAbsolute[] | ((value: string) => boolean)Shortcut for resource.test.
type:
stringModule type to use for the module.
use:
string | RuleSetUseFunction | (string | false | 0 | RuleSetUseFunction | { ident?: string; loader?: string; options?: string | { [index: string]: any } } | null | undefined)[] | { ident?: string; loader?: string; options?: string | { [index: string]: any } }Modifiers applied to the module when rule is matched.
with:
{ [index: string]: RuleSetConditionOrConditions }Match on import attributes of the dependency.
Type:
string | RegExp | ((value: string) => boolean) | RuleSetLogicalConditions | RuleSetCondition[]Type:
string | RegExp | ((value: string) => boolean) | RuleSetLogicalConditionsAbsolute | RuleSetConditionAbsolute[]Type:
string | RegExp | ((value: string) => boolean) | RuleSetLogicalConditions | RuleSetCondition[](undefined | null | string | false | 0 | RuleSetUseFunction | { ident?: string; loader?: string; options?: string | { [index: string]: any } })[]
{ ident?: string; loader?: string; options?: string | { [index: string]: any } }
Attributes
Attributes
Attributes
{ ident?: string; loader?: string; options?: string | { [index: string]: any } }
Attributes