Skip to content

Commit eb61f7a

Browse files
committed
tweak
1 parent 24164f9 commit eb61f7a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -319,12 +319,10 @@ export function VariableDeclaration(node, context) {
319319
const current_chunk = context.state.current_parallelized_chunk;
320320
if (
321321
is_async &&
322-
init.type === 'AwaitExpression' &&
323322
context.state.analysis.instance &&
324323
context.state.scope === context.state.analysis.instance.scope &&
325324
// TODO make it work without this
326-
declarator.id.type === 'Identifier' &&
327-
!is_expression_async(init.argument)
325+
declarator.id.type === 'Identifier'
328326
) {
329327
parallelize = can_be_parallelized(value, context.state.scope, context.state.analysis, [
330328
...(current_chunk?.bindings ?? []),

0 commit comments

Comments
 (0)