Get the latest tech news

Move on to ESM-Only


Let's move on to ESM-only

Three years ago, I wrote a post about shipping ESM & CJS in a single package, advocating for dual CJS/ESM formats to ease user migration and trying to make the best of both worlds. It helps avoid the async infection(also known as Red Functions) introduced by dynamic import() ESM, which can be pretty hard, if not impossible in some cases, to migrate and adapt. To improve the transparency and visibility of the ESM adoption, I recently built a visualized tool called Node Modules Inspector for analyzing your packages’s dependencies.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of ESM

ESM