Rich-Harris / pancake

Experimental charting library for Svelte

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Getting warning after upgrading to sveltekit 2

msdrigg opened this issue · comments

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"
+   }
  }

Hi @Rich-Harris - do you wan't a PR for this fix?