News for hackers. Stuff that matters.
Re:Bun v1.0.0 by jakubmazanec on Sunday September 10, 2023 @08:42AM (#37455311)
From my experience, the feeling that "Node.js ecosystem is more-or-less completely broken" comes only when you're trying to create package supporting both CommonJS and ESM (see https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3...). Just rip the ban-aid and convert all your code to ESM and you'll be much happier (otherwise you experience something like https://blog.isquaredsoftware.com/2023/08/esm-modernization-...).
Re:Bun v1.0.0 by The_Colonel on Sunday September 10, 2023 @10:53AM (#37456368)
"just convert all your code to..."

I remember hearing that once from the Python devs...

Re:Bun v1.0.0 by jakubmazanec on Sunday September 10, 2023 @11:07AM (#37456510)
I don't use Python, but AFAIK the differences between Python 2 and 3 and the effort needed to upgrade are higher then ESM vs CommonJS. But that's not relevant anyway; I'm not saying the upgrading to ESM-only is easy, I'm saying in the end, it's easier than trying to support both module formats.