Skip to content
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

Feature request: add commonjs and esm exports #299

Open
ericallam opened this issue Sep 19, 2024 · 4 comments · May be fixed by #301
Open

Feature request: add commonjs and esm exports #299

ericallam opened this issue Sep 19, 2024 · 4 comments · May be fixed by #301

Comments

@ericallam
Copy link

Currently superjson does not export commonjs, only ESM. It would be great to support both formats. Our package that we use superjson in supports both formats and having superjson be ESM only causes some issues. It's really easy these days to create a dual-package using something like tshy (which is what we use). If you are open to it, I'd be happy to create a PR.

@hashwarp
Copy link

hashwarp commented Oct 3, 2024

Ya, I feel like whoever made this change isn't living in reality. ESM-only simply doesn't work for any app of medium complexity.

@acheronfail acheronfail linked a pull request Oct 8, 2024 that will close this issue
@palfaro91
Copy link

Did you guys find a workaround? @ericallam @Spudfellah

@ericallam
Copy link
Author

@palfaro91 unfortunately the only way at the moment is to use dynamic imports.

@harijoe
Copy link

harijoe commented Nov 5, 2024

Going back to ^1.13.3 is a temporary solution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants