Skip to content

Commit 39ffa63

Browse files
committed
lint
1 parent 728f033 commit 39ffa63

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.changeset/real-onions-confess.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
'svelte': patch
33
---
44

5-
fix: ensure logic blocks keep consitent namespacing
5+
fix: ensure logic blocks keep consistent namespacing

packages/svelte/src/compiler/phases/3-transform/utils.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,10 @@ export function infer_namespace(namespace, parent, nodes) {
350350
// If the parent block is a control block, we want to keep the namespace if it's not html
351351
if (
352352
namespace !== 'html' &&
353-
(parent.type === 'EachBlock' || parent.type === 'AwaitBlock' || parent.type === 'KeyBlock')
353+
(parent.type === 'IfBlock' ||
354+
parent.type === 'EachBlock' ||
355+
parent.type === 'AwaitBlock' ||
356+
parent.type === 'KeyBlock')
354357
) {
355358
return namespace;
356359
}

0 commit comments

Comments
 (0)