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
If a variable is exported from a module context and a variable with the same name is declared in a <script> element, the export is omitted from the module.
<scriptcontext="module">
export const x = 1;
</script><script>constx=2;</script>
Describe the bug
If a variable is exported from a module context and a variable with the same name is declared in a
<script>
element, the export is omitted from the module.To reproduce
Svelte REPL: https://svelte.dev/repl/0935c4be70ff446989a0517c28394e58?version=3.15.0
Expected behavior
The compiled module should have two exports: the default component export and the module context export:
Information about your Svelte project
Severity
This issue can easily be avoided by giving the variables different names.
The text was updated successfully, but these errors were encountered: