Post

I get the desire for ESM for things like tree shaking (though I'd like to see some numbers on impact here). I get the nicer syntax. But, unbundled ESM takes about 2x as long as CJS to load in my tests (can show if desired). If your users aren't bundling ESM opts them in to big a load-time perf hit.

Thanks for sharing this great article. The first time I read it, I came to the same conclusion I came just right now: we treat ESM like a novelty, but more time has passed since its introduction than the one passed from CJS to ESM introduction. As a community, we are just exiting the py2->py3 loop

0 reposts1 like

No replies yet.