diff --git a/src/compile/Component.ts b/src/compile/Component.ts index 466eded49a..53604540a2 100644 --- a/src/compile/Component.ts +++ b/src/compile/Component.ts @@ -759,7 +759,7 @@ export default class Component { const unsorted_reactive_declarations = []; this.instance_script.content.body.forEach(node => { - if (node.type === 'LabeledStatement') { + if (node.type === 'LabeledStatement' && node.label.name === '$') { this.reactive_declaration_nodes.add(node); const assignees = new Set(); @@ -979,4 +979,4 @@ function process_meta(component, nodes) { } return meta; -} \ No newline at end of file +}