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.
Matching moments
04:41 MIN
The evolution from Webpack to bundler-agnostic federation
Native Federation: The Future of Micro Frontends and Plugin-Systems in Angular
04:17 MIN
How bundlers work and why they are necessary
Tree Shaking the Bytes Away
02:13 MIN
Sharing libraries and handling version conflicts
Micro Frontends with Module Federation: Why and How?
10:23 MIN
Reframing common complaints about JavaScript development
How to Stop Choosing JavaScript Frameworks and Start Living
02:56 MIN
Identifying the most common pain points in JavaScript testing
The 2025 State of JavaScript Testing
02:49 MIN
Leveraging native browser features for development
The Eternal Sunshine of the Zero Build Pipeline
03:37 MIN
Leveraging the TypeScript compiler and modern runtimes
End-to-End TypeScript: Completing the Modern Development Stack
02:57 MIN
Integrating micro frontends with module federation
Advanced Micro Frontends: Multi-Version and Multi-Framework Scenarios
Featured Partners
Related Videos
The Eternal Sunshine of the Zero Build Pipeline
M4dz
The 2025 State of JavaScript Testing
Daniel Afonso
JavaScript the Grumpy Parts
Rob Richardson
Native Federation: The Future of Micro Frontends and Plugin-Systems in Angular
Manfred Steyer
Micro-Frontends with Module Federation: Beyond the Basics
Manfred Steyer
The Dependency Cookbook - Recipes for Micro Frontend success
Lucas Braeschke & Stefan Bley
All you need is types
Tal Joffe
To New Frontiers: The Future of Frontend Development
Rainer Hahnekamp
Related Articles
View all articles



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

doinstruct Software GmbH
Berlin, Germany
Senior
GIT
JavaScript
TypeScript

Speech Processing Solutions
Vienna, Austria
Intermediate
CSS
HTML
JavaScript
TypeScript

SMG Swiss Marketplace Group
Ho Chi Minh City, Viet Nam
Junior

SMG Swiss Marketplace Group
Ho Chi Minh City, Viet Nam
Senior


DL Remote
Bremen, Germany
Remote
€80K
Node.js
TypeScript
AWS Lambda

Vesterling Consulting GmbH
Köln, Germany
Remote
HTML
Node.js


DL Remote
Hannover, Germany
Remote
€80K
Node.js
TypeScript
AWS Lambda