Skip to content

Commit

Permalink
fix #1621
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich-Harris committed Aug 4, 2018
1 parent 09db82b commit 48bd025
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/compile/nodes/Component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
Expand Down

0 comments on commit 48bd025

Please sign in to comment.