fix: remove metadata from legacy AST (#13927)

Besides being private API that shouldn't be exposed, they caused our AST explorer on the Svelte site to traverse endlessly

fixes https://github.com/sveltejs/svelte.dev/issues/480
revert-13651-compile-warning
Simon H 2 weeks ago committed by GitHub
parent 441124c5c7
commit 81f9bdd376
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -0,0 +1,5 @@
---
'svelte': patch
---
fix: remove metadata from legacy AST

@ -204,7 +204,9 @@ export function convert(source, ast) {
ignores: extract_svelte_ignore(node.start, node.data, false)
};
},
ComplexSelector(node) {
ComplexSelector(node, { next }) {
next(); // delete inner metadata/parent properties
const children = [];
for (const child of node.children) {

Loading…
Cancel
Save