We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
You can find more information about this here https://github.com/sveltejs/vite-plugin-svelte/blob/main/docs/faq.md#missing-exports-condition
The text was updated successfully, but these errors were encountered:
With latest versions of Svelte, this is required and throws nasty warnings all day long.
The fix is super simple, simply add the exports object to the package.json and it's all good:
exports
package.json
... "svelte": "dist/index.js", "exports": { ".": { "types": "./dist/ts/index.d.ts", "svelte": "./dist/index.js" } }, ...
edit: added types
Sorry, something went wrong.
Added PR: #52
No branches or pull requests
You can find more information about this here https://github.com/sveltejs/vite-plugin-svelte/blob/main/docs/faq.md#missing-exports-condition
The text was updated successfully, but these errors were encountered: