Re:NPM and NodeJS should do more to make ES Modules easy to use
by tqwhite on Wednesday June 26, 2024 @11:06AM
(#40800907)
No. It is a result of a practical, engineering perspective. I love theory. It's necessary for moving the world forward.
I also love getting things to work. Three quarters of NPM packages are CJS. Several of them are ones I wrote.
The reason they are not ESM is that the theoretically pure folks had control and I voted with my fingers because everything I do has to fit in my a substantial amount of existing CJS code.
Arguing for practical solutions that accommodate an imperfect world is absolutely correct.
People outside the context of this discussion could simply be uninformed, they don’t need to be willfully misunderstanding.