Skip to content

Commit 9fc86f1

Browse files
authored
fix(utils): Account for rule property "generator" (#454)
In Webpack 5 a new property "generator" has been added to the rule definition, which must be accounted for in the rule set. Fixes #428. (See vuejs/vue-loader#1753)
1 parent c21e3db commit 9fc86f1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: lib/utils/get-matched-rule-5.js

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ const ruleSetCompiler = new RuleSetCompiler([
2222
new BasicEffectRulePlugin('sideEffects'),
2323
new BasicEffectRulePlugin('parser'),
2424
new BasicEffectRulePlugin('resolve'),
25+
new BasicEffectRulePlugin('generator'),
2526
new DescriptionDataMatcherRulePlugin(),
2627
new UseEffectRulePlugin()
2728
]);

0 commit comments

Comments
 (0)