Open pournasserian opened 2 years ago
What about AutoImport components?
https://github.com/yuanchuan/sveltekit-autoimport
usage:
<Button>
<Icon name="book"/>
</Button>
What about AutoImport components?
https://github.com/yuanchuan/sveltekit-autoimport
usage:
<Button> <Icon name="book"/> </Button>
Does id support intellisense in VSCode?
There is an open issue in their GitHub page https://github.com/yuanchuan/sveltekit-autoimport/issues/30
And in that issue someone posted a YouTube link which shows how we can use sveltekit-autoimport and how to define component types in global.d.ts file
declare const Button: typeof import('@ubeac/svelte')['Button'];
declare const Badge: typeof import('@ubeac/svelte')['Badge']
// ....
There is an open issue in their GitHub page https://github.com/yuanchuan/sveltekit-autoimport/issues/30
And in that issue someone posted a YouTube link which shows how we can use sveltekit-autoimport and how to define component types in global.d.ts file
declare const Button: typeof import('@ubeac/svelte')['Button']; declare const Badge: typeof import('@ubeac/svelte')['Badge'] // ....
we can do this in index.d.ts
file which We created in #383
If we import a component which is not used, the optimizer should remove the reference to reduce the size of bundle.
Should be transformed to: