We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e94b82e commit 573d59cCopy full SHA for 573d59c
packages/svelte2tsx/src/htmlxtojsx_v2/index.ts
@@ -91,7 +91,7 @@ export function convertHtmlxToJsx(
91
? element
92
: undefined
93
);
94
- if (!element) {
+ if (parent === ast) {
95
// root snippet -> move to instance script
96
rootSnippets.push([node.start, node.end]);
97
}
0 commit comments