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

svelte warning: missing exports condition #11

Open
joekrump opened this issue Jan 23, 2025 · 0 comments
Open

svelte warning: missing exports condition #11

joekrump opened this issue Jan 23, 2025 · 0 comments

Comments

@joekrump
Copy link

Hi there, when using this package I get the following waring from the svelte vite plugin:

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

In the svelte docs, they say to let the maintainer know since this will end up breaking the package:

If you see a warning logged for this when using a Svelte library, please tell the library maintainers.

This is the example fix that they list:

// package.json
  "files": ["dist"],
  "svelte": "dist/index.js",
+ "exports": {
+   ".": {
+     "svelte": "./dist/index.js"
+   }
  }
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

1 participant