Closed
Description
Describe the bug
There is an error in $state, if $state is defined in
<script context="module">
and also used in <script>
.
Instead of returning a correct value, an object is returned.
Reproduction
See function in Drag.svelte.
Comment this line out - and everything is fine.
Bug with <script context="module">:
LINK
But works with additional js file:
LINK
Logs
No response
System Info
running Svelte compiler version 5.0.0-next.45
Severity
blocking an upgrade
Metadata
Metadata
Assignees
Labels
No labels