Skip to content

Commit 6973746

Browse files
committed
oops
1 parent 43e97b8 commit 6973746

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ export function client_component(source, analysis, options) {
262262
b.stmt(b.call('$.flushSync'))
263263
]);
264264

265-
if (binding.initial) {
265+
if (analysis.runes && binding.initial) {
266266
// turn `set foo($$value)` into `set foo($$value = expression)`
267267
setter.value.params[0] = {
268268
type: 'AssignmentPattern',

0 commit comments

Comments
 (0)