You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In a component with <script context="module">, some markup, and without <script>; having a writable store be set by an exported function won't cause reactive updates in the markup.
Adding an empty <script></script> will include writable store in compiled output.
Describe the bug
In a component with
<script context="module">
, some markup, and without<script>
; having a writable store be set by an exported function won't cause reactive updates in the markup.Adding an empty
<script></script>
will include writable store in compiled output.Reproduction
Toast component: https://svelte.dev/repl/6c0757bed5044018ba5560733e7b56bf?version=4.2.19
Workaround:
<script></script>
to the markupNote this works totally fine in Svelte 5, in both Runes and non-Runes modes. Demo.
Logs
No response
System Info
Severity
annoyance
The text was updated successfully, but these errors were encountered: