The amount of time I have invested porting stuff that worked perfectly fine with CommonJS over to ESM is unbelievable. But it is all worth it knowing that at the end of the day, after all that hard work, it will... work exactly the same with zero additional benefits... mostly. It will probably always have some hiccups that don't work as nice as the old system.
@tolmasky itโ€™s been a significant factor in my drifting away from JS/TS open source. 30% more complexity in build / maintenance such a huge hassle that I just backed away a couple times.

@tolmasky the amount of times I had to learn what is #CommonJS and what is #ESM to then forget it and get bitten again when I come to #JS is bleak in comparison, I'm sure, but it made me make a video (mostly for myself) to later watch: https://www.youtube.com/watch?v=SIows5N4BAY

๐Ÿ˜†

ESM vs CommonJS - Hyperefficient Startup 001

YouTube