Skip to content

Commit

Permalink
fix: remove resource field in cloned rules (fix #1254)
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Apr 26, 2018
1 parent 3a9eb2f commit 35ca03f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,11 @@ function cloneRule (rule, normalizedRule) {
delete res.loaders
delete res.options

// these are included in the normalized resource() check
delete res.resource
delete res.include
delete res.exclude

if (rule.oneOf) {
res.oneOf = rule.oneOf.map((r, i) => {
return cloneRule(r, normalizedRule.oneOf[i])
Expand Down

0 comments on commit 35ca03f

Please sign in to comment.