fix(5019): make variable if hoisted if subscrible

pull/5022/head
Bassam Ismail 5 years ago
parent 46d0d129b7
commit df790f6355

@ -1152,7 +1152,7 @@ export default class Component {
for (const specifier of specifiers) {
const variable = var_lookup.get(specifier.local.name);
if (!variable.mutated || var_lookup.get(`$${specifier.local.name}`)) {
if (!variable.mutated || variable.subscribable) {
variable.hoistable = true;
}
}

Loading…
Cancel
Save