fix: correctly analyze `<object.property>` components

gh-16708
ComputerGuy 1 day ago
parent 2344b4052e
commit 5260ae869e

@ -0,0 +1,5 @@
---
'svelte': patch
---
fix: correctly analyze `<object.property>` components

@ -1032,7 +1032,7 @@ export function create_scopes(ast, root, allow_reactive_declarations, parent) {
},
Component: (node, context) => {
context.state.scope.reference(b.id(node.name), context.path);
context.state.scope.reference(b.id(node.name.split('.')[0]), context.path);
Component(node, context);
},
SvelteSelf: Component,

Loading…
Cancel
Save