Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating npm for svelte export condition #14

Open
menocsk27 opened this issue Sep 26, 2024 · 1 comment
Open

Updating npm for svelte export condition #14

menocsk27 opened this issue Sep 26, 2024 · 1 comment

Comments

@menocsk27
Copy link

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!

@idris-maps
Copy link
Owner

idris-maps commented Oct 1, 2024

hello @menocsk27
thank you for the heads up
glad to hear someone uses this
i will see if it is an easy fix
otherwise i am considering archiving this repo
keeping up with all the tooling changes is a pain
the ZoomSvg component is very simple
simply copying it into your project may be the easiest
note the dependency on d3, the d3-selection and d3-zoom modules to be precise
it is standard js and should not blow up your build

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants