Skip to content

Commit ae8bd6f

Browse files
committed
fix await member expressions
1 parent 990634d commit ae8bd6f

File tree

1 file changed

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

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,8 @@ export function build_component(node, component_name, context, anchor = context.
180180
return (
181181
n.type === 'ExpressionTag' &&
182182
n.expression.type !== 'Identifier' &&
183-
n.expression.type !== 'MemberExpression'
183+
(n.expression.type !== 'MemberExpression' ||
184+
n.expression.object.type === 'AwaitExpression')
184185
);
185186
});
186187

0 commit comments

Comments
 (0)