Duder-onomy / svelte-focus-trap

Svelte directive that will trap focus within itself. Useful for modals or other places you want focus to trap and wrap.
MIT License
30 stars 2 forks source link

Svelte build warning. #11

Open olafurw opened 5 months ago

olafurw commented 5 months ago

After updating Svelte, I get this warning when using this library.

1:34:02 PM [vite-plugin-svelte] WARNING: The following packages have a svelte field in their package.json but no exports condition for svelte.

svelte-focus-trap@1.2.0

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

Same problem here after updating Svelte. Fixing the warning would appreciated.

EvEggelen commented 1 month ago

The following can be used as alternative : https://github.com/henrygd/trap-focus-svelte. v1.1.0. and up will contain the fixes to remove all warnings / errors.

npm i trap-focus-svelte