svelte-intellij icon indicating copy to clipboard operation
svelte-intellij copied to clipboard

Add support for `context="module"`

Open petermakeswebsites opened this issue 1 year ago • 1 comments

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}

petermakeswebsites avatar Jul 22 '22 09:07 petermakeswebsites

Looks like dupe https://github.com/tomblachut/svelte-intellij/issues/241

r00t3g avatar Jul 22 '22 12:07 r00t3g

Migrated to WEB-54714 Svelte: modules exported from a 'context="module"' script block of the other component not resolved

tomblachut avatar Jul 04 '23 17:07 tomblachut