Skip to content

Commit

Permalink
fix: do not throw when Rule.layer (#2000)
Browse files Browse the repository at this point in the history
Related to #1849 but this PR doesn't fix the problem that `component.vue?type=style` doesn't inherit the layer.
It only ensures that webpack does not throw, and all existing usages aren't broken by `vue-loader`.
  • Loading branch information
nolimitdev authored Apr 19, 2023
1 parent 44141f8 commit ef589df
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/pluginWebpack5.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,14 @@ const ruleSetCompiler = new RuleSetCompiler([
new BasicMatcherRulePlugin('realResource'),
new BasicMatcherRulePlugin('issuer'),
new BasicMatcherRulePlugin('compiler'),
new BasicMatcherRulePlugin('issuerLayer'),
...objectMatcherRulePlugins,
new BasicEffectRulePlugin('type'),
new BasicEffectRulePlugin('sideEffects'),
new BasicEffectRulePlugin('parser'),
new BasicEffectRulePlugin('resolve'),
new BasicEffectRulePlugin('generator'),
new BasicEffectRulePlugin('layer'),
new UseEffectRulePlugin(),
])

Expand Down

0 comments on commit ef589df

Please sign in to comment.