Hacker News new | past | comments | ask | show | jobs | submit login

I’d say compared to other languages there’s been two big issues:

1. A not insignificant number of packages are either polyfilling things in browsers, or providing a consistent (or ‘isomorphic') API for certain things across both browsers and Node.js, or adding things that should have been in a standard library.

2. A lot of packages still seem to be distributed primarily as CommonJS and not ES Modules. CommonJS makes tree-shaking harder than it should, so it was often just easier to break what should have been a single library into many smaller pieces.

Hopefully in the not too distant future library maintainers get around to reading the Node.js docs[0] fix some of this.

[0] https://nodejs.org/api/esm.html




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: