From 48bd0252316c6e4d2251ad10128629ab0c4fb7f5 Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Sat, 4 Aug 2018 15:46:10 -0400 Subject: [PATCH] fix #1621 --- src/compile/nodes/Component.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/compile/nodes/Component.ts b/src/compile/nodes/Component.ts index 60de3bcac5a4..fb244e5fba2d 100644 --- a/src/compile/nodes/Component.ts +++ b/src/compile/nodes/Component.ts @@ -78,6 +78,10 @@ export default class Component extends Node { ) { this.cannotUseInnerHTML(); + if (this.expression) { + block.addDependencies(this.expression.dependencies); + } + this.attributes.forEach(attr => { block.addDependencies(attr.dependencies); });