Skip to content

Commit 088eeaf

Browse files
committed
fix: ensure compiler statements are correctly included
1 parent 4715dfa commit 088eeaf

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.changeset/nice-peas-lay.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'svelte': patch
3+
---
4+
5+
fix: ensure compiler statements are correctly included

packages/svelte/src/compiler/phases/3-transform/client/visitors/RegularElement.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,7 @@ export function RegularElement(node, context) {
401401
context.state.init.push(
402402
b.block([
403403
...child_state.init,
404+
...element_state.init,
404405
child_state.update.length > 0 ? build_render_statement(child_state.update) : b.empty,
405406
...child_state.after_update,
406407
...element_state.after_update

0 commit comments

Comments
 (0)