Uploaded June 2025 | Updated December 2026, 3 hours ago
Web Engines Hackfest 2025 - webengineshackfest.org/2025
Title: Bridging CommonJS and ESM in Node.js
Author: Joyee Cheung
Date: 02/06/2025
Slides: webengineshackfest.org/slides/bridging_commonjs_and_esm_in_node.js_by_joyee_cheung.pdf
ESM has become stable in Node.js since 2020, but the adoption of it in the ecosystem turned out to be slower than expected and the interoperability between CommonJS and ESM has been a common source of pain for developers - interestingly, one of the important factor was the lack of support of require(esm) in Node.js. This gap started to be filled since 2024 and by May 2025, all supported release lines of Node.js would support require(esm). In this talk, we will take a look at history of CommonJS/ESM interoperability, how require(esm) works in Node.js under the hood, and the challenges we encountered during its rollout.
Web Engines Hackfest 2025 - webengineshackfest.org/2025
Title: Bridging CommonJS and ESM in Node.js
Author: Joyee Cheung
Date: 02/06/2025
Slides: webengineshackfest.org/slides/bridging_commonjs_and_esm_in_node.js_by_joyee_cheung.pdf
ESM has become stable in Node.js since 2020, but the adoption of it in the ecosystem turned out to be slower than expected and the interoperability between CommonJS and ESM has been a common source of pain for developers - interestingly, one of the important factor was the lack of support of require(esm) in Node.js. This gap started to be filled since 2024 and by May 2025, all supported release lines of Node.js would support require(esm). In this talk, we will take a look at history of CommonJS/ESM interoperability, how require(esm) works in Node.js under the hood, and the challenges we encountered during its rollout.










