Replies: 2 comments 3 replies
-
Thanks for sharing, and ofcourse the work you put into the ESM/CJS support. They have the same pain we've been through, and i agree with alot of the things they mention about how complicated it is. Also good to read about tsup, knowing we use it no, thanks for that 🎉. Regarding UMD, i elaborated on my reasoning here To reitterate in the context of this discussion, i believe as long as it doesnt cause issues or limitations, i believe it doesnt hurt keeping it. If it would cause issues, even for build tools, we can always consider removing it. But as mentioned, we maintain alot of SDKs, and we ship UMD for all (or most) of those (we even shipped a new major pretty recently for a couple of SDKs while keeping UMD as well). When im back in the office next week, im happy to discuss UMD support in our larger surface area with our team, but we shouldnt drop this in a one off like this without considering our larger surface area. |
Beta Was this translation helpful? Give feedback.
-
I do want to add that i think we definetly broke ie11 in the last PR to introduce arrow functions (not sure it worked before that PR, it's on my todo to check when back from holiday next week), which means we have more reasons to drop UMD, or make it output es5 for UMD if ie11 would be needed. However, im not keen to explicitly support IE11, which might mean dropping UMD is a possibility as i see little need for UMD beyond IE11. Let me get back to this. |
Beta Was this translation helpful? Give feedback.
-
Wanted to share this excellent article that I happened to stumble upon by @markerikson, sharing his experience modernizing packages to ESM. It was of special interest to me, as it has very close parallels to what I did for
jwt-decode
on thebeta
branch.@frederikprijck I think the section on UMD support might also be relevant for us, Redux is a much more popular libray.
Beta Was this translation helpful? Give feedback.
All reactions