Interface: ModuleOptions
Defined in: webpack/types.d.ts:11256 Options affecting the normal modules (NormalModuleFactory).
Properties
defaultRules?
Defined in: webpack/types.d.ts:11260 An array of rules applied by default for modules.optionaldefaultRules: (false|""|0|"..."|RuleSetRule)[]
exprContextCritical?
Defined in: webpack/types.d.ts:11265 Enable warnings for full dynamic dependencies.optionalexprContextCritical:boolean
exprContextRecursive?
Defined in: webpack/types.d.ts:11270 Enable recursive directory lookup for full dynamic dependencies. Deprecated: This option has moved to ‘module.parser.javascript.exprContextRecursive’.optionalexprContextRecursive:boolean
exprContextRegExp?
Defined in: webpack/types.d.ts:11275 Sets the default regular expression for full dynamic dependencies. Deprecated: This option has moved to ‘module.parser.javascript.exprContextRegExp’.optionalexprContextRegExp:boolean|RegExp
exprContextRequest?
Defined in: webpack/types.d.ts:11280 Set the default request for full dynamic dependencies. Deprecated: This option has moved to ‘module.parser.javascript.exprContextRequest’.optionalexprContextRequest:string
generator?
Defined in: webpack/types.d.ts:11285 Specify options for each generator.optionalgenerator:GeneratorOptionsByModuleType
noParse?
Defined in: webpack/types.d.ts:11290 Don’t parse files matching. It’s matched against the full resolved request.optionalnoParse:string|RegExp| (content) =>boolean| (string|RegExp| (content) =>boolean)[]
parser?
Defined in: webpack/types.d.ts:11299 Specify options for each parser.optionalparser:ParserOptionsByModuleType
rules?
Defined in: webpack/types.d.ts:11304 An array of rules applied for modules.optionalrules: (false|""|0|"..."|RuleSetRule)[]
strictExportPresence?
Defined in: webpack/types.d.ts:11309 Emit errors instead of warnings when imported names don’t exist in imported module. Deprecated: This option has moved to ‘module.parser.javascript.strictExportPresence’.optionalstrictExportPresence:boolean
strictThisContextOnImports?
Defined in: webpack/types.d.ts:11314 Handle the this context correctly according to the spec for namespace objects. Deprecated: This option has moved to ‘module.parser.javascript.strictThisContextOnImports’.optionalstrictThisContextOnImports:boolean
unknownContextCritical?
Defined in: webpack/types.d.ts:11319 Enable warnings when using the require function in a not statically analyse-able way. Deprecated: This option has moved to ‘module.parser.javascript.unknownContextCritical’.optionalunknownContextCritical:boolean
unknownContextRecursive?
Defined in: webpack/types.d.ts:11324 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’.optionalunknownContextRecursive:boolean
unknownContextRegExp?
Defined in: webpack/types.d.ts:11329 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’.optionalunknownContextRegExp:boolean|RegExp
unknownContextRequest?
Defined in: webpack/types.d.ts:11334 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’.optionalunknownContextRequest:string
unsafeCache?
Defined in: webpack/types.d.ts:11339 Cache the resolving of module requests.optionalunsafeCache:boolean| (module) =>boolean
wrappedContextCritical?
Defined in: webpack/types.d.ts:11344 Enable warnings for partial dynamic dependencies. Deprecated: This option has moved to ‘module.parser.javascript.wrappedContextCritical’.optionalwrappedContextCritical:boolean
wrappedContextRecursive?
Defined in: webpack/types.d.ts:11349 Enable recursive directory lookup for partial dynamic dependencies. Deprecated: This option has moved to ‘module.parser.javascript.wrappedContextRecursive’.optionalwrappedContextRecursive:boolean
wrappedContextRegExp?
Defined in: webpack/types.d.ts:11354 Set the inner regular expression for partial dynamic dependencies. Deprecated: This option has moved to ‘module.parser.javascript.wrappedContextRegExp’.optionalwrappedContextRegExp:RegExp