tomblachut / svelte-intellij

Svelte components in WebStorm and friends
MIT License
485 stars 38 forks source link

Re-export svelte component #48

Closed dishuostec closed 4 years ago

dishuostec commented 5 years ago

When re-export multiple svelte components using a js file, webstorm can't recognize component.

image

image

example: https://svelte.dev/repl/e66018598e614b5d874a28fb9fa4ac62?version=3.7.1

tomblachut commented 5 years ago

Partially fixed in #39. Imports are still marked as unused :/

tomblachut commented 4 years ago

Small update:

export {default as Foo} from './Foo.svelte';
export {default as Bar} from './Bar.svelte';

works at least in current version. I'm gonna fix this soon™

tomblachut commented 4 years ago

image will be fixed in v0.14