robinmetral / svelte-micromodal

Svelte wrapper around Micromodal to create light, accessible modal dialogs. Docs 👇
https://svelte-micromodal.pages.dev
MIT License
5 stars 2 forks source link

Missing exports condition #7

Open forna opened 8 months ago

forna commented 8 months ago

With Vite 5 the package.json should be updated as described here: https://github.com/sveltejs/vite-plugin-svelte/blob/main/docs/faq.md#missing-exports-condition4

to fix the warning:

[vite-plugin-svelte] WARNING: The following packages have a svelte field in their package.json but no e
xports condition for svelte.

svelte-micromodal@0.0.8

package.json

  "svelte": "./index.js",
+ "exports": {
+  ".": {
+     "svelte": "./index.js"
+   }
+ }
}
robinmetral commented 8 months ago

Thanks for reporting @forna! Do you want to make a PR for this? :slightly_smiling_face: