From ecfaba116280c4d08b3ffc522ecfc5dc6d1af93a Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Thu, 22 Jan 2026 16:26:27 -0500 Subject: [PATCH] fix --- .../compiler/phases/3-transform/server/visitors/ConstTag.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/svelte/src/compiler/phases/3-transform/server/visitors/ConstTag.js b/packages/svelte/src/compiler/phases/3-transform/server/visitors/ConstTag.js index 1cfc5a2b29..94c8080476 100644 --- a/packages/svelte/src/compiler/phases/3-transform/server/visitors/ConstTag.js +++ b/packages/svelte/src/compiler/phases/3-transform/server/visitors/ConstTag.js @@ -31,9 +31,9 @@ export function ConstTag(node, context) { } if (blockers.length === 1) { - run.thunks.push(b.thunk(b.member(/** @type {Expression} */ (blockers[0]), 'promise'))); + run.thunks.push(b.thunk(/** @type {Expression} */ (blockers[0]))); } else if (blockers.length > 0) { - run.thunks.push(b.thunk(b.call('$.wait', b.array(blockers)))); + run.thunks.push(b.thunk(b.call('$.Promise.all', b.array(blockers)))); } const assignment = b.assignment('=', id, init);