How itโs going with ESM vs CJS today: 29.6% of the popular packages on npm now includes ESM. Up from 28.8% a quarter ago. ESM-only is up from 10.8% to 11.5%. Itโs perhaps all a bit soon after Node 18 became EOL on April 30, making `require(esm)` available everywhere. Maybe next quarter shows more
Post
Previous post: bsky.app/profile/wooo...
An update on how itโs going with ESM vs CJS: As of today, 29% of the popular packages on npm includes ESM. This remains an *approximation*: I think the idea is accurate but donโt put too much on the actual numbers. I fixed the algo to remove more spam, and detect more things as dual
new post: bsky.app/profile/wooo...
Hello friends and welcome to a new โHow is ESM vs CJS going!โ 33.4% of the popular packages on npm now includes ESM. Up from 29.6% half a year ago. We have a third! ESM-only is up from 11.5% to 12.6%. This is also the impact of half a year of Node 18 being EOL, making `require(esm)` available
0 reposts2 likes
No replies yet.