maybe this works?

pull/16542/head
ComputerGuy 1 month ago
parent 5787224971
commit 4d677151ab

@ -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();
// }
}

Loading…
Cancel
Save