3 ms·
The nodejs modules are what makes nodejs great. It encourage sharing code and modularization without complexity.
by z3t4 8y ago
The nodejs modules are what makes nodejs great. It encourage sharing code and modularization without complexity.
- yeskia 8y agoWhat do you dislike about ESM in comparison?
- z3t4 8y agoESM had no implementation, and there where already a unofficial standard. Why did ESM land in ES2015 ? Three years later it still got issues and implementation is experimental at best.
- growtofill 8y agoThey are supported by browsers for about two years now: https://jakearchibald.com/2017/es-modules-in-browsers/ https://jakearchibald.com/2017/es-modules-in-browsers/
- kn8 8y agoBut why is nobody using that? Specifically, I would think 99% if stuff being shipped today is bundled with tools like webpack.
- charrondev 8y agoBecause it lacks support for bare specifiers and package lookup. There’s also no dead code elimination or code splitting.
- ascorbic 8y agoThese are still node modules, and they're still on npm. They just use ESM syntax as well as CommonJS.