mirror of https://github.com/sveltejs/svelte
[fix] do not warn if module variables are not the only dependencies in reactive statements (#6510)
The warning was too strict, since there are valid use cases for having non-reactive variables inside reactive statements Fixes #5954pull/7738/head
parent
11c846fb97
commit
6d031bf02f
@ -0,0 +1,7 @@
|
||||
<script context="module">
|
||||
let PI = 3.14;
|
||||
</script>
|
||||
<script>
|
||||
let r;
|
||||
$: area = PI * r * r;
|
||||
</script>
|
||||
@ -0,0 +1 @@
|
||||
[]
|
||||
Loading…
Reference in new issue