Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit b2d7ffb

Browse filesBrowse files
committed
fix: should apply cloned rules to custom blocks too
1 parent c070aeb commit b2d7ffb
Copy full SHA for b2d7ffb

File tree

1 file changed

+4
-2
lines changed
Filter options

1 file changed

+4
-2
lines changed

‎src/pluginWebpack5.ts

Copy file name to clipboardExpand all lines: src/pluginWebpack5.ts
+4-2Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ const ruleSetCompiler = new RuleSetCompiler([
7979
new BasicEffectRulePlugin('sideEffects'),
8080
new BasicEffectRulePlugin('parser'),
8181
new BasicEffectRulePlugin('resolve'),
82-
new UseEffectRulePlugin()
82+
new UseEffectRulePlugin(),
8383
])
8484

8585
class VueLoaderPlugin implements Plugin {
@@ -225,7 +225,9 @@ const langBlockRuleCheck = (
225225
query: qs.ParsedUrlQuery,
226226
rule: CompiledRule
227227
): boolean => {
228-
return !rule.conditions.length || query.lang != null
228+
return (
229+
query.type === 'custom' || !rule.conditions.length || query.lang != null
230+
)
229231
}
230232

231233
const langBlockRuleResource = (

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.