Closed khromov closed 3 months ago
I can confirm this change breaks Vite's build process (So even just Vite + Svelte)
I can confirm the same thing happens for me.
It's caused by an attempt to fix this issue: https://github.com/joshnuss/svelte-persisted-store/issues/258
It seems simply adding type: "module"
is not enough.
I don't know a lot about packaging but I can see that module
is set to dist/index.mjs
here which doesn't seem right as the generated dist folder doesn't contain such a file.
Is it possible it never caused an issue before because the package wasn't a module, and now that it is it's trying to load that file which doesn't exist?
what's needed is adding exports
field to package.json
https://publint.dev/svelte-persisted-store@0.9.3
@joshnuss I suggest you add a publint
as part of your CI / prepublish checks: npx publint
Thanks for reporting!
Sorry about that.
It is now fixed in ddfe9d41b0ec1476f1d0f96e0411f2c48b0317de.
Please update to v0.9.4
Just saw the new version tagged and updated, but it does not seem to work with SvelteKit. So if you have this issue, you can stay on 0.9.2 for now.
Here is a SvelteLab reproduction: https://www.sveltelab.dev/k303hv6xldifpue