Merge pull request #2314 from sveltejs/gh-2139-script

subscribe to global stores from script
pull/2319/head
Rich Harris 6 years ago committed by GitHub
commit 415da7dade
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -648,7 +648,7 @@ export default class Component {
this.add_reference(name.slice(1)); this.add_reference(name.slice(1));
const variable = this.var_lookup.get(name.slice(1)); const variable = this.var_lookup.get(name.slice(1));
variable.subscribable = true; if (variable) variable.subscribable = true;
} else { } else {
this.add_var({ this.add_var({
name, name,

@ -0,0 +1,3 @@
export default {
error: 'missingGlobal is not defined'
};
Loading…
Cancel
Save