pull/16568/head
ComputerGuy 4 weeks ago
parent 47a6687ecc
commit 6cd425890e

@ -48,7 +48,8 @@ export function Fragment(node, context) {
const is_single_child_not_needing_template =
trimmed.length === 1 &&
(trimmed[0].type === 'SvelteFragment' || trimmed[0].type === 'TitleElement');
const has_await = context.path.at(-1)?.type !== 'Root' && node.metadata.has_await;
const has_await =
node.metadata.has_await && !(parent.type === 'Root' && parent.fragment === node);
const template_name = context.state.scope.root.unique('root'); // TODO infer name from parent
const unsuspend = b.id('$$unsuspend');

Loading…
Cancel
Save