Skip to content

Commit 9cf6d51

Browse files
committed
disallow module.loaders
1 parent 5e84167 commit 9cf6d51

2 files changed

Lines changed: 1 addition & 9 deletions

File tree

lib/NormalModuleFactory.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class NormalModuleFactory extends Tapable {
4646
constructor(context, resolvers, options) {
4747
super();
4848
this.resolvers = resolvers;
49-
this.ruleSet = new RuleSet(options.rules || options.loaders);
49+
this.ruleSet = new RuleSet(options.rules);
5050
this.cachePredicate = typeof options.unsafeCache === "function" ? options.unsafeCache : Boolean.bind(null, options.unsafeCache);
5151
this.context = context || "";
5252
this.parserCache = {};

schemas/webpackOptionsSchema.json

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -138,14 +138,6 @@
138138
"exprContextRequest": {
139139
"type": "string"
140140
},
141-
"loaders": {
142-
"allOf": [
143-
{
144-
"$ref": "#/definitions/ruleSet-rules"
145-
}
146-
],
147-
"description": "An array of automatically applied loaders."
148-
},
149141
"noParse": {
150142
"description": "Don't parse files matching. It's matched against the full resolved request.",
151143
"anyOf": [

0 commit comments

Comments
 (0)