Skip to content

Commit 710d6a6

Browse files
committed
fix
1 parent aeff5f3 commit 710d6a6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,9 @@ export function VariableDeclaration(node, context) {
211211
is_async &&
212212
context.state.analysis.instance &&
213213
context.state.scope === context.state.analysis.instance.scope &&
214-
!dev
214+
!dev &&
215+
// TODO make it work without this
216+
declarator.id.type === 'Identifier'
215217
) {
216218
parallelize = can_be_parallelized(value, context.state.scope, context.state.analysis);
217219
}

0 commit comments

Comments
 (0)