Skip to content

Commit 5787224

Browse files
committed
fix
1 parent 7fa57b1 commit 5787224

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/svelte/src/compiler/phases/2-analyze/visitors/AwaitExpression.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ export function AwaitExpression(node, context) {
1313
context.state.expression.has_await = true;
1414
if (
1515
context.state.fragment.node &&
16-
!context.path.find((node) => node.type === 'ExpressionTag')
16+
// TODO there's probably a better way to do this
17+
context.path.find((node) => node.type === 'ConstTag')
1718
) {
1819
context.state.fragment.has_await = true;
1920
}

0 commit comments

Comments
 (0)