Skip to content

Commit 4d67715

Browse files
committed
maybe this works?
1 parent 5787224 commit 4d67715

File tree

1 file changed

+13
-13
lines changed
  • packages/svelte/src/compiler/phases/2-analyze/visitors

1 file changed

+13
-13
lines changed

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

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,23 @@
77
*/
88
export function Fragment(node, context) {
99
const parent = /** @type {AST.TemplateNode} */ (context.path.at(-1));
10-
if (
11-
!parent ||
12-
parent.type === 'Component' ||
13-
parent.type === 'Root' ||
14-
parent.type === 'IfBlock' ||
15-
parent.type === 'KeyBlock' ||
16-
parent.type === 'EachBlock' ||
17-
parent.type === 'SnippetBlock' ||
18-
parent.type === 'AwaitBlock'
19-
) {
10+
// if (
11+
// !parent ||
12+
// parent.type === 'Component' ||
13+
// parent.type === 'Root' ||
14+
// parent.type === 'IfBlock' ||
15+
// parent.type === 'KeyBlock' ||
16+
// parent.type === 'EachBlock' ||
17+
// parent.type === 'SnippetBlock' ||
18+
// parent.type === 'AwaitBlock'
19+
// ) {
2020
const fragment_metadata = {
2121
has_await: false,
2222
node
2323
};
2424
context.next({ ...context.state, fragment: fragment_metadata });
2525
node.metadata.has_await = fragment_metadata.has_await;
26-
} else {
27-
context.next();
28-
}
26+
// } else {
27+
// context.next();
28+
// }
2929
}

0 commit comments

Comments
 (0)