Getting warning after upgrading to sveltekit 2
msdrigg opened this issue · comments
Scott Driggers commented
9:29:01 AM [vite-plugin-svelte] WARNING: The following packages have a svelte field in their package.json but no exports condition for svelte.
@sveltejs/pancake@0.0.18
Please see https://github.com/sveltejs/vite-plugin-svelte/blob/main/docs/faq.md#missing-exports-condition for details.
The recommended fix is found here https://github.com/sveltejs/vite-plugin-svelte/blob/main/docs/faq.md#missing-exports-condition
// package.json
"files": ["dist"],
"svelte": "dist/index.js",
+ "exports": {
+ ".": {
+ "svelte": "./dist/index.js"
+ }
}
Alex Bjørlig commented
Hi @Rich-Harris - do you wan't a PR for this fix?