On this page

Options affecting the normal modules (NormalModuleFactory).

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

An array of rules applied by default for modules.

Stability: 0Deprecated
Type:boolean

Enable warnings for full dynamic dependencies.

Stability: 0Deprecated
Type:boolean

Enable recursive directory lookup for full dynamic dependencies. Deprecated: This option has moved to 'module.parser.javascript.exprContextRecursive'.

Stability: 0Deprecated

Sets the default regular expression for full dynamic dependencies. Deprecated: This option has moved to 'module.parser.javascript.exprContextRegExp'.

Stability: 0Deprecated
Type:string

Set the default request for full dynamic dependencies. Deprecated: This option has moved to 'module.parser.javascript.exprContextRequest'.

Specify options for each generator.

Type:string | RegExp | ((content: string) => boolean) | (string | RegExp | ((content: string) => boolean))[]

Don't parse files matching. It's matched against the full resolved request.

Specify options for each parser.

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

An array of rules applied for modules.

Stability: 0Deprecated
Type:boolean

Emit errors instead of warnings when imported names don't exist in imported module. Deprecated: This option has moved to 'module.parser.javascript.strictExportPresence'.

Stability: 0Deprecated
Type:boolean

Handle the this context correctly according to the spec for namespace objects. Deprecated: This option has moved to 'module.parser.javascript.strictThisContextOnImports'.

Stability: 0Deprecated
Type:boolean

Enable warnings when using the require function in a not statically analyse-able way. Deprecated: This option has moved to 'module.parser.javascript.unknownContextCritical'.

Stability: 0Deprecated
Type:boolean

Enable recursive directory lookup when using the require function in a not statically analyse-able way. Deprecated: This option has moved to 'module.parser.javascript.unknownContextRecursive'.

Stability: 0Deprecated

Sets the regular expression when using the require function in a not statically analyse-able way. Deprecated: This option has moved to 'module.parser.javascript.unknownContextRegExp'.

Stability: 0Deprecated
Type:string

Sets the request when using the require function in a not statically analyse-able way. Deprecated: This option has moved to 'module.parser.javascript.unknownContextRequest'.

Type:boolean | ((module: Module) => boolean)

Cache the resolving of module requests.

Stability: 0Deprecated
Type:boolean

Enable warnings for partial dynamic dependencies. Deprecated: This option has moved to 'module.parser.javascript.wrappedContextCritical'.

Stability: 0Deprecated
Type:boolean

Enable recursive directory lookup for partial dynamic dependencies. Deprecated: This option has moved to 'module.parser.javascript.wrappedContextRecursive'.

Stability: 0Deprecated
Type:RegExp

Set the inner regular expression for partial dynamic dependencies. Deprecated: This option has moved to 'module.parser.javascript.wrappedContextRegExp'.