From e85f8afa1c8bc0ce28655a47d95b9f5395c1f07c Mon Sep 17 00:00:00 2001 From: Richard Harris Date: Wed, 3 Jul 2019 19:34:24 -0400 Subject: [PATCH] huh apparently this works --- src/compiler/compile/nodes/shared/Expression.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/compiler/compile/nodes/shared/Expression.ts b/src/compiler/compile/nodes/shared/Expression.ts index 1c58044696..29130ca849 100644 --- a/src/compiler/compile/nodes/shared/Expression.ts +++ b/src/compiler/compile/nodes/shared/Expression.ts @@ -140,6 +140,7 @@ export default class Expression { if (template_scope.is_let(name)) { if (!function_expression) { // TODO should this be `!lazy` ? contextual_dependencies.add(name); + dependencies.add(name); } } else if (template_scope.names.has(name)) { expression.uses_context = true;