zodern / melte

Svelte compiler for Meteor with built in tracker integration and HMR
MIT License
33 stars 14 forks source link

Enable tsconfig preserveValueImports #23

Open zodern opened 1 year ago

zodern commented 1 year ago

When this option is disabled, which seems to be the default, typescript can remove imports for components. We should either find a way to ensure this option is always enabled when compiling svelte components, or document this.

tosinek commented 1 year ago

Linking related forum post: https://forums.meteor.com/t/component-not-defined-after-import-svelte-typescript/59077

tosinek commented 1 year ago

I think it is working if you delete your local folder and I created a PR to update the docs.