Open ericallam opened 2 months ago
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.
Did you guys find a workaround? @ericallam @Spudfellah
@palfaro91 unfortunately the only way at the moment is to use dynamic imports.
Going back to ^1.13.3 is a temporary solution
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.