You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you see a warning logged for this when using a Svelte library, please tell the library maintainers.
Using the svelte field in package.json to point at .svelte source files is deprecated and you must use a svelteexport 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.
You can also add individual exports of .svelte files in the exports map which gives users a choice to also use deep imports.
See the faq about vite and prebundling why they can be useful at times.
Library authors are highly encouraged to update their packages to add the new exports condition as outlined above. Check out svelte-package which already supports it.
For backwards compatibility, you can keep the svelte field in addition to the exports condition. But make sure that both always resolve to the same files.
The text was updated successfully, but these errors were encountered:
using @sveltestack/[email protected]
the following warning popup
[vite-plugin-svelte] WARNING: The following packages have a svelte field in their package.json but no exports condition for svelte.
Please see https://github.com/sveltejs/vite-plugin-svelte/blob/main/docs/faq.md#missing-exports-condition for details.
missing exports condition
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:
You can also add individual exports of .svelte files in the exports map which gives users a choice to also use deep imports.
See the faq about vite and prebundling why they can be useful at times.
The text was updated successfully, but these errors were encountered: