diff --git a/src/compiler/compile/Component.ts b/src/compiler/compile/Component.ts index 481960760a..5f06de8e21 100644 --- a/src/compiler/compile/Component.ts +++ b/src/compiler/compile/Component.ts @@ -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; } }