diff --git a/src/compile/render-dom/wrappers/Slot.ts b/src/compile/render-dom/wrappers/Slot.ts index 69fa570d7d..07ee48ab73 100644 --- a/src/compile/render-dom/wrappers/Slot.ts +++ b/src/compile/render-dom/wrappers/Slot.ts @@ -40,9 +40,10 @@ export default class SlotWrapper extends Wrapper { this.node.values.forEach(attribute => { add_to_set(this.dependencies, attribute.dependencies); - block.add_dependencies(attribute.dependencies); }); + block.add_dependencies(this.dependencies); + // we have to do this, just in case block.add_intro(); block.add_outro();