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/6549/head
parent
a8c35daa9a
commit
fd031105aa
@ -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