Re:Node Modules at War: Why CommonJS and ES Modules Can’t Ge...
by mantap on Thursday August 06, 2020 @03:13AM
(#24068784)
I feel the opposite. ESM is a nightmare and I hope I can avoid using it in node as long as possible.
[ Parent
| on HN ]
Re:Node Modules at War: Why CommonJS and ES Modules Can’t Ge...
by pilif on Thursday August 06, 2020 @05:26AM
(#24069382)
that's the attitude that brought us sites only working in Internet Explorer (and now Chrome)
IE had many non-standard APIs that were much more convenient to use than what the standard was providing (innerHTML, document.all)
And rather than moving to the standard, more and more code was written targeting IE which also had a conveniently large user-base.
ESM is the standard. CJS is the solution proprietary to node.js.