Update src/compile/Component.ts

Co-Authored-By: Rich-Harris <richard.a.harris@gmail.com>
pull/1839/head
Conduitry 7 years ago committed by GitHub
parent f08f40739c
commit 2451bf5b57
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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;
}
}

Loading…
Cancel
Save