svelte-intellij
svelte-intellij copied to clipboard
Add support for `context="module"`
Looks like there is no proper support for module context so I'm throwing this in here to put on the to-do list
Example.svelte
<script lang="ts" context="module">
import { writable } from "svelte/store"
export const animal = writable("tiger")
</script>
Animal is a {$animal}
Second.svelte
<script lang="ts">
import { animal } from "Example.svelte" // Cannot resolve symbol 'headerAnimationsReady'
</script>
Imported animal is a {$animal}
Looks like dupe https://github.com/tomblachut/svelte-intellij/issues/241
Migrated to WEB-54714 Svelte: modules exported from a 'context="module"' script block of the other component not resolved