diff --git a/packages/svelte/src/compiler/phases/2-analyze/visitors/Fragment.js b/packages/svelte/src/compiler/phases/2-analyze/visitors/Fragment.js index 4916c8910e..4a2d621629 100644 --- a/packages/svelte/src/compiler/phases/2-analyze/visitors/Fragment.js +++ b/packages/svelte/src/compiler/phases/2-analyze/visitors/Fragment.js @@ -7,23 +7,23 @@ */ export function Fragment(node, context) { const parent = /** @type {AST.TemplateNode} */ (context.path.at(-1)); - if ( - !parent || - parent.type === 'Component' || - parent.type === 'Root' || - parent.type === 'IfBlock' || - parent.type === 'KeyBlock' || - parent.type === 'EachBlock' || - parent.type === 'SnippetBlock' || - parent.type === 'AwaitBlock' - ) { + // if ( + // !parent || + // parent.type === 'Component' || + // parent.type === 'Root' || + // parent.type === 'IfBlock' || + // parent.type === 'KeyBlock' || + // parent.type === 'EachBlock' || + // parent.type === 'SnippetBlock' || + // parent.type === 'AwaitBlock' + // ) { const fragment_metadata = { has_await: false, node }; context.next({ ...context.state, fragment: fragment_metadata }); node.metadata.has_await = fragment_metadata.has_await; - } else { - context.next(); - } + // } else { + // context.next(); + // } }