Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 35ca03f

Browse files
committedApr 26, 2018
fix: remove resource field in cloned rules (fix #1254)
1 parent 3a9eb2f commit 35ca03f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
 

‎lib/plugin.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,11 @@ function cloneRule (rule, normalizedRule) {
166166
delete res.loaders
167167
delete res.options
168168

169+
// these are included in the normalized resource() check
170+
delete res.resource
171+
delete res.include
172+
delete res.exclude
173+
169174
if (rule.oneOf) {
170175
res.oneOf = rule.oneOf.map((r, i) => {
171176
return cloneRule(r, normalizedRule.oneOf[i])

0 commit comments

Comments
 (0)
Please sign in to comment.