John Nguyen
Oh CommonJS! Why are you mESMing with me?
#1about 6 minutes
A real-world conflict between CommonJS and ESM packages
An NPM package upgrade causes Jest tests to fail with a syntax error because an ESM-only dependency conflicts with Jest's CommonJS environment.
#2about 3 minutes
Understanding the origins of CommonJS and ESM modules
JavaScript module systems like CommonJS and ESM were created to manage growing codebases by allowing code to be split, shared, and reused.
#3about 1 minute
Examining the current landscape of module adoption
Statistics show that while CommonJS packages are still dominant, there is a clear and growing trend towards ESM adoption in the ecosystem.
#4about 3 minutes
Comparing unbundled CommonJS and ESM performance
An initial benchmark using the AWS SDK shows that the unbundled CommonJS implementation runs faster than its ESM counterpart.
#5about 2 minutes
How bundling reveals ESM's performance advantage
After bundling with esbuild, the ESM version is nearly half the size and runs significantly faster due to superior tree-shaking capabilities.
#6about 6 minutes
Why you should embrace an ESM-only future
ESM is the future due to smaller bundles, better performance, and its status as a web standard, making it a signal to modernize legacy dependencies.
Related jobs
Jobs that call for the skills explored in this talk.
Douglas GmbH
Düsseldorf, Germany
Intermediate
Senior
TypeScript
React
Eltemate
Amsterdam, Netherlands
Intermediate
Senior
TypeScript
Continuous Integration
+1
Hubert Burda Media
München, Germany
€80-95K
Intermediate
Senior
JavaScript
Node.js
+1
Matching moments
02:33 MIN
Why you might not need JavaScript for everything
WeAreDevelopers LIVE – You Don’t Need JavaScript, Modern CSS and More
03:31 MIN
The value of progressive enhancement and semantic HTML
WeAreDevelopers LIVE – You Don’t Need JavaScript, Modern CSS and More
08:07 MIN
Exploring modern JavaScript performance and new CSS features
WeAreDevelopers LIVE – AI, Freelancing, Keeping Up with Tech and More
09:38 MIN
Technical challenges of shipping a cross-platform browser
Developer Time Is Valuable - Use the Right Tools - Kilian Valkhof
11:10 MIN
The only frontend stack that truly matters
WeAreDevelopers LIVE – Frontend Inspirations, Web Standards and more
05:01 MIN
Comparing the security models of browsers and native apps
Developer Time Is Valuable - Use the Right Tools - Kilian Valkhof
11:32 MIN
The industry's focus on frameworks over web fundamentals
WeAreDevelopers LIVE – Frontend Inspirations, Web Standards and more
09:00 MIN
Navigating the growing complexity of modern CSS
WeAreDevelopers LIVE – You Don’t Need JavaScript, Modern CSS and More
Featured Partners
Related Videos
The Eternal Sunshine of the Zero Build Pipeline
M4dz
The 2025 State of JavaScript Testing
Daniel Afonso
Native Federation: The Future of Micro Frontends and Plugin-Systems in Angular
Manfred Steyer
JavaScript the Grumpy Parts
Rob Richardson
Micro-Frontends with Module Federation: Beyond the Basics
Manfred Steyer
Lies we Tell Ourselves As Developers
Stefan Baumgartner
10 must-know design patterns for JS Devs
Erick Wendel
4 Steps from JavaScript to TypeScript
Phil Nash
Related Articles
View all articles



From learning to earning
Jobs that call for the skills explored in this talk.

Confideck GmbH
Vienna, Austria
Remote
Intermediate
Senior
Node.js
MongoDB
TypeScript

Visonum GmbH
Remote
Junior
Intermediate
React
Redux
TypeScript

Citrus
Amsterdam, Netherlands
Remote
€7-11K
Senior
React
DevOps
Vue.js
+12

GL Global
£75-90K
Senior
React
Node.js
TypeScript
A/B testing
+4

Nexus
Charing Cross, United Kingdom
Docker
Node.js
Jasmine
JavaScript
Kubernetes
+6




TechBiz Global GmbH
REST
Docker
Node.js
JavaScript
Continuous Integration