On this page

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

Logic operators used in a condition matcher.

Attributes
Logical AND.
Logical NOT.
Logical OR.

Logic operators used in a condition matcher.

Attributes

A rule description with conditions and effects for modules.

Attributes
Match on import assertions of the dependency.
Match the child compiler name.
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.
Shortcut for resource.exclude.
extractSourceMap:boolean
Enable/Disable extracting source map.
generator:{ [index: string]: any }
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.
oneOf:(false | "" | 0 | RuleSetRule | null | undefined)[]
Only execute the first matching rule in this array.
options:string | { [index: string]: any }
Shortcut for use.options.
parser:{ [index: string]: any }
Options for parsing.
Match the import phase of the dependency.
Match the real resource path of the module.
Options for the resolver.
Match the resource path of the module.
resourceFragment:string | RegExp | RuleSetLogicalConditions | RuleSetCondition[] | ((value: string) => boolean)
Match the resource fragment of the module.
Match the resource query of the module.
rules:(false | "" | 0 | RuleSetRule | null | undefined)[]
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.
type:string
Module 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.
Match on import attributes of the dependency.




Type:string | (undefined | null | string | false | 0 | RuleSetUseFunction | { ident?: string; loader?: string; options?: string | { [index: string]: any } })[] | RuleSetUseFunction | { ident?: string; loader?: string; options?: string | { [index: string]: any } }

string


(undefined | null | string | false | 0 | RuleSetUseFunction | { ident?: string; loader?: string; options?: string | { [index: string]: any } })[]


RuleSetUseFunction


{ ident?: string; loader?: string; options?: string | { [index: string]: any } }

Attributes
ident:string
Unique loader options identifier.
loader:string
Loader name.
options:string | { [index: string]: any }
Loader options.

Attributes
Returns:string | RuleSetUseFunction | { ident?: string; loader?: string; options?: string | { [index: string]: any } } | (undefined | null | string | false | 0 | RuleSetUseFunction | { ident?: string; loader?: string; options?: string | { [index: string]: any } })[]

Attributes
Returns:string | RuleSetUseFunction | { ident?: string; loader?: string; options?: string | { [index: string]: any } } | (undefined | null | string | false | 0 | RuleSetUseFunction | { ident?: string; loader?: string; options?: string | { [index: string]: any } })[]

Type:string | RuleSetUseFunction | { ident?: string; loader?: string; options?: string | { [index: string]: any } }

string


RuleSetUseFunction


{ ident?: string; loader?: string; options?: string | { [index: string]: any } }

Attributes
ident:string
Unique loader options identifier.
loader:string
Loader name.
options:string | { [index: string]: any }
Loader options.