ESM-Only: It’s Time to Leave CJS Behind

Опубликовано: 07 Февраль 2026
на канале: LogRocket
344
10

Today on PodRocket, our web development podcast, host Paul Mikulskis talks with Anthony Fu, framework developer at Nuxt Labs, about why he thinks developers should move to using ESM-only modules.

In this episode, Anthony and I talk about:

Why moving to ESM-only can be controversial in the dev world
The benefits of moving from a CJS-first format to an ESM-only format and why now might be a better time than ever
How to address interoperability challenges and dual package maintenance in the ESM Era
And, what the future of an ESM-only world will look like — and how developers benefit

---
Links
Anthony’s website: https://antfu.me
Bluesky: https://bsky.app/profile/antfu.me
GitHub: https://github.com/antfu
Twitter: https://x.com/antfu7
LinkedIn:   / antfu  

Resources
Move on to ESM-only: https://antfu.me/posts/move-on-to-esm...

---
Chapters

00:00 Intro
01:07 ESM vs CJS
04:55 ESM Migration Strategies and Tools
17:32 Node Modules Inspector
21:09 Quick Round Questions
22:59 Outro

---
🎙 Listen to PodRocket
🎧 Spotify: https://open.spotify.com/show/6oFuKu8...
🎧 Apple Podcasts: https://podcasts.apple.com/us/podcast...

📺 Subscribe on YouTube: @LogRocket

Follow on Socials
➡️ Paul Mikulkis, Host:   / paul-mikulskis-37a50b4a  
➡️ Emily Kochanek, Producer:   / emily-kochanek-11582750  
➡️ Elizabeth Becz, Production Assistant:   / elizabethb3cz  
➡️ LogRocket:   / logrocket  

---
What does LogRocket do?
LogRocket provides AI-first session replay and analytics that surface the UX and technical issues impacting user experiences. Start understanding where your users are struggling by trying it for free at LogRocket.com.