From 83556df9d73355cde06c12905d02aba6bad48c72 Mon Sep 17 00:00:00 2001 From: Yannick Ihmels Date: Tue, 27 Apr 2021 10:57:23 +0200 Subject: [PATCH] fix(utils): Account for rule property "generator" 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) --- lib/utils/get-matched-rule-5.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/utils/get-matched-rule-5.js b/lib/utils/get-matched-rule-5.js index f272ef9..5fd5869 100644 --- a/lib/utils/get-matched-rule-5.js +++ b/lib/utils/get-matched-rule-5.js @@ -22,6 +22,7 @@ const ruleSetCompiler = new RuleSetCompiler([ new BasicEffectRulePlugin('sideEffects'), new BasicEffectRulePlugin('parser'), new BasicEffectRulePlugin('resolve'), + new BasicEffectRulePlugin('generator'), new DescriptionDataMatcherRulePlugin(), new UseEffectRulePlugin() ]);