-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
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
[@xstate/svelte] Missing ESM exports #2642
Comments
I also have a problem there. I'm using SvelteKit and xstate with @xstate/svelte and it causes problems when building for e.g. cloudflare where SvelteKit tries to bundle the application with esbuild. I'll try looking into it and maybe make a PR with ESM target. |
* Add ESM build to @xstate/svelte package, fixes #2642 * tweaks Co-authored-by: Mateusz Burzyński <[email protected]>
Description
Right now, the distributed package of @xstate/svelte only exports CJS and this caused some problem after an update in SvelteKit (sveltejs/kit#2418).
Expected Result
In any case, Xstate core exports both CJS and ESM. Is there any reason why it isn't the same with @xstate/svelte? If there isn't any, I think it should have an ESM export.
The text was updated successfully, but these errors were encountered: