diff --git a/src/compiler/compile/Component.ts b/src/compiler/compile/Component.ts index 6a8d5b178e..37c48da98c 100644 --- a/src/compiler/compile/Component.ts +++ b/src/compiler/compile/Component.ts @@ -1310,7 +1310,7 @@ export default class Component { if (variable) { variable.is_reactive_dependency = true; - if (variable.module) { + if (variable.module && variable.writable) { should_add_as_dependency = false; module_dependencies.add(name); }