From 9fc86f106f08f6a4ea20188c98be4608f246d9e6 Mon Sep 17 00:00:00 2001 From: Yannick Ihmels Date: Thu, 6 May 2021 10:18:16 +0200 Subject: [PATCH] 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) --- 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() ]);