svelte-parts icon indicating copy to clipboard operation
svelte-parts copied to clipboard

Updating npm for svelte export condition

Open menocsk27 opened this issue 5 months ago • 1 comments

Hi! I recently used the ZoomSvg component and it works great -- only minor thing is that when using vite-plugin-svelte to build, it warns me that:

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

[email protected]

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

In the published npm package (0.0.6), this would be fixed by replacing ".": "./index.js", with ".": { "svelte": "./index.js" } , in the package.json, but I see that the latest version here in the repo now uses svelte-kit to package everything so this may already be fixed.

Either way, are there plans to update the npm package soon? Thanks in advance!

menocsk27 avatar Sep 26 '24 13:09 menocsk27