Skip to content

Commit a819a67

Browse files
committed
fix?
1 parent d399d8a commit a819a67

File tree

1 file changed

+3
-1
lines changed
  • packages/svelte/src/compiler/phases/3-transform/client/visitors

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,9 @@ export function Program(node, context) {
169169
body.splice(
170170
chunk.position + offset,
171171
0,
172-
b.declaration(chunk.kind ?? 'const', [b.declarator(pattern, b.await(init))])
172+
b.declaration(chunk.kind ?? 'const', [
173+
b.declarator(pattern, b.call(b.await(b.call('$.save', init))))
174+
])
173175
);
174176
}
175177
offset++;

0 commit comments

Comments
 (0)