Closed blueneogeo closed 8 months ago
I'll take a look.
Note: I encountered some rough edges when attempting to use it with TypeScript and Rollup.
If you're reading this, make sure to use v7.4.6.
Fixes include:
.css
files./*svelte
for direct component importsThank you for the quick fix
From https://github.com/sveltejs/vite-plugin-svelte/blob/main/docs/faq.md#missing-exports-condition:
missing exports condition
| If you see a warning logged for this when using a Svelte library, please tell the library maintainers.
Using the
svelte
field inpackage.json
to point at.svelte
source files is deprecated and you must use asvelte
export condition. vite-plugin-svelte 3 still resolves it as a fallback, but in a future major release this is going to be removed and without exports condition resolving the library is going to fail.Example: