Closed mikenikles closed 1 year ago
Ah yeah, because vite 3 outputs and expects .mjs modules instead of .esm.js. I noticed that too. The fix is update this lib to vite 3 and change the pkg exports. Will do.
Vite CommonJS Plugin might get this working.
Fixed
I use
sswr
in a SvelteKit application ("@sveltejs/kit": "^1.0.0-next.442"
).In dev, everything works fine. However, when I run
npm run build
andnpm run preview
and load a page that importssswr
, I see the following error:Does anyone have a working example of
sswr
with SvelteKit? Maybe @khromov because of #34 🤔?