On this page

A rule description with conditions and effects for modules.

Match on import assertions of the dependency.

Match the child compiler name.

Match dependency type.

Match values of properties in the description file (usually package.json).

Type:"pre" | "post"

Enforce this rule as pre or post step.

Shortcut for resource.exclude.

Type:boolean

Enable/Disable extracting source map.

Type:{ [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).

Type:string

Specifies the layer in which the module should be placed in.

Type:string

Shortcut for use.loader.

Match module mimetype when load from Data URI.

Type:(false | "" | 0 | RuleSetRule | null | undefined)[]

Only execute the first matching rule in this array.

Type:string | { [index: string]: any }

Shortcut for use.options.

Type:{ [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.

Match the resource fragment of the module.

Match the resource query of the module.

Type:(false | "" | 0 | RuleSetRule | null | undefined)[]

Match and execute these rules when this rule is matched.

Match module scheme.

Type:boolean

Flags a module as with or without side effects.

Shortcut for resource.test.

Type:string

Module type to use for the module.

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

Modifiers applied to the module when rule is matched.

Type:string

Unique loader options identifier.

Type:string

Loader name.

Type:string | { [index: string]: any }

Loader options.

Match on import attributes of the dependency.