From 2451bf5b57e5bb5b36d4b99e9ed6e38712f6ddef Mon Sep 17 00:00:00 2001 From: Conduitry Date: Wed, 12 Dec 2018 19:52:16 -0500 Subject: [PATCH] Update src/compile/Component.ts Co-Authored-By: Rich-Harris --- src/compile/Component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 +}