Skip to content

Commit 68ad7eb

Browse files
committed
wip
1 parent 59090f5 commit 68ad7eb

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ export function SvelteBoundary(node, context) {
8888
b.call('$.boundary', context.state.node, props, b.arrow([b.id('$$anchor')], block))
8989
);
9090

91+
context.state.template.push('<!>');
9192
context.state.init.push(
9293
external_statements.length > 0 ? b.block([...external_statements, boundary]) : boundary
9394
);

packages/svelte/src/compiler/phases/3-transform/utils.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,8 @@ export function clean_nodes(
310310
*/
311311
is_standalone:
312312
trimmed.length === 1 &&
313+
(parent.type !== 'SvelteBoundary' ||
314+
(hoisted[0]?.type === 'ConstTag' && is_top_level_await(hoisted[0].declaration))) &&
313315
((first.type === 'RenderTag' && !first.metadata.dynamic) ||
314316
(first.type === 'Component' &&
315317
!state.options.hmr &&

0 commit comments

Comments
 (0)