separate es modules for <script context="module">
and <script>
during dev / hmr
#136
Labels
<script context="module">
and <script>
during dev / hmr
#136
Describe the problem
Current implementation in svelte-hmr self-accepts updates to Component.svelte, which can cause broken references for exports of
context=module
scripts. see #134Describe the proposed solution
Instead of returning 1 es-module for Component.svelte js, return a facade wrapping 2 virtual modules, allowing for separate hmr updates and properly propagating updates of
context=module
Alternatives considered
Use
acceptNamedExports: false
option of svelte-hmr, letting updates bubble and live with extra reloadsImportance
would make my life easier
The text was updated successfully, but these errors were encountered: