Skip to content

Commit e07672b

Browse files
authored
fix
1 parent 710d6a6 commit e07672b

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ export function Program(node, context) {
153153
);
154154
} else {
155155
const pattern = b.array_pattern(chunk.declarators.map(({ id }) => id));
156-
const init = b.call('$.all', b.array(chunk.declarators.map(({ init }) => init)));
156+
const init = b.call('$.all', ...chunk.declarators.map(({ init }) => init));
157157
body.push(b.declaration(chunk.kind, [b.declarator(pattern, b.await(init))]));
158158
}
159159
}

0 commit comments

Comments
 (0)