Skip to content

Commit 8091a6e

Browse files
committed
more
1 parent 1b55045 commit 8091a6e

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

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

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -261,12 +261,10 @@ export function VariableDeclaration(node, context) {
261261
// TODO make it work without this
262262
declarator.id.type === 'Identifier'
263263
) {
264-
parallelize = can_be_parallelized(
265-
value,
266-
context.state.scope,
267-
context.state.analysis,
268-
context.state.current_parallelized_chunk?.bindings ?? []
269-
);
264+
parallelize = can_be_parallelized(value, context.state.scope, context.state.analysis, [
265+
...(context.state.current_parallelized_chunk?.bindings ?? []),
266+
...context.state.scope.get_bindings(declarator)
267+
]);
270268
}
271269

272270
/** @type {VariableDeclarator[]} */

0 commit comments

Comments
 (0)