Skip to content

Commit 2942e8b

Browse files
committed
fix
1 parent 8f8a889 commit 2942e8b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

packages/svelte/src/compiler/phases/2-analyze/visitors/SvelteBoundary.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,11 @@ export function SvelteBoundary(node, context) {
2424
}
2525

2626
context.next();
27+
if (node.fragment.metadata.has_await) {
28+
for (const child of node.fragment.nodes) {
29+
if (child.type === 'SnippetBlock') {
30+
child.body.metadata.has_await = true;
31+
}
32+
}
33+
}
2734
}

0 commit comments

Comments
 (0)