daybrush / selecto

Selecto.js is a component that allows you to select elements in the drag area using the mouse or touch.
https://daybrush.com/selecto
MIT License
2k stars 81 forks source link

svelte-selecto: svelte-selecto@1.26.3 have a svelte field in their package.json but no exports condition for svelte #162

Open 0gust1 opened 7 months ago

0gust1 commented 7 months ago

First, thanks for the useful package!

Environments

Description

With the latest sveltekit version (which uses vite v5), we had the following warning

17:59:01 [vite-plugin-svelte] WARNING: The following packages have a svelte field in their package.json but no exports condition for svelte.
...
svelte-selecto@1.26.3
...

Please see https://github.com/sveltejs/vite-plugin-svelte/blob/main/docs/faq.md#missing-exports-condition for details.

Relevant info: https://github.com/sveltejs/vite-plugin-svelte/blob/main/docs/faq.md#missing-exports-condition

The fix hinted by the link seems quite straightforward (and backward compatible), but ask if a help/PR is welcome.