svelte-geolocation
svelte-geolocation copied to clipboard
"Missing exports condition" warning with vite-plugin-svelte
When bundling with [email protected] and @sveltejs/[email protected] (after having updated to SvelteKit 2), I've been getting the following Vite warning:
[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.
Reading from that link, it looks like a small change to the package.json
file should fix this. My app runs just fine even with the warning, but according to the link this current structure is deprecated and support for it might be removed in the future.
Note: I have been getting this same warning with your svelte-search library, but opening two separate issues for the same problem sounds a bit overkill. I'd appreciate it if you could update both.
Thanks for reporting, will take a pass at resolving these warnings.
Also just ran into this issue. Looks like it hasn't been resolved yet.
The package is updated with an exports map in v1.0.0