Tagged articles
29 articles
Page 1 of 1
Node.js Tech Stack
Node.js Tech Stack
Jan 12, 2026 · Backend Development

Node.js require(esm) Goes Stable: CommonJS and ESM Finally Reconcile

Node.js now marks require(esm) as stable in LTS releases, allowing CommonJS files to require synchronous ESM modules without extra flags, simplifying package.json configuration, eliminating the need for dual packages, and resolving the long‑standing CJS‑ESM split for the vast majority of projects.

CommonJSESMLTS
0 likes · 8 min read
Node.js require(esm) Goes Stable: CommonJS and ESM Finally Reconcile
Code Mala Tang
Code Mala Tang
Aug 23, 2025 · Frontend Development

Why ESM Is Overtaking CommonJS: A Deep Dive into JavaScript Modules

This article traces the history and reasons behind JavaScript’s module formats—from early AMD and UMD to Node’s CommonJS and the modern ECMAScript modules—explains migration challenges, tooling, testing nuances, and best practices for managing dual builds in contemporary projects.

CommonJSESMJavaScript
0 likes · 22 min read
Why ESM Is Overtaking CommonJS: A Deep Dive into JavaScript Modules
Open Source Tech Hub
Open Source Tech Hub
Jul 18, 2024 · Frontend Development

jQuery 4.0.0‑beta.2: CommonJS/ESM Support, Boolean Attribute Fixes, Slim Build

jQuery 4.0.0‑beta.2 introduces a major rewrite of its testing infrastructure, drops legacy IE support, adds full CommonJS and ESM compatibility with proper export handling, removes special Boolean attribute logic, fixes element position calculations in tables, and offers a slimmer build that omits ajax and deferred modules.

BetaBoolean AttributesCommonJS
0 likes · 9 min read
jQuery 4.0.0‑beta.2: CommonJS/ESM Support, Boolean Attribute Fixes, Slim Build
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Apr 9, 2024 · Fundamentals

A Comprehensive Overview of JavaScript Module Systems: From Traditional Scripts to ESM

This article traces the evolution of JavaScript module systems—from the early script tags and manual dependency ordering, through CommonJS, AMD, and UMD, to the modern ECMAScript modules—explaining their origins, challenges, and how bundlers and package fields enable seamless usage across browsers and Node.js environments.

AMDCommonJSESM
0 likes · 13 min read
A Comprehensive Overview of JavaScript Module Systems: From Traditional Scripts to ESM
ByteFE
ByteFE
Aug 16, 2023 · Frontend Development

Evolution of Frontend Module Systems and Major Module Specifications

This article traces the history of frontend modularization from early global‑function scripts through IIFE, CommonJS, ES6 modules, AMD and CMD, explaining why modularization is needed, how each approach works, their drawbacks, and the key features of each specification.

AMDCommonJScmd
0 likes · 14 min read
Evolution of Frontend Module Systems and Major Module Specifications
DaTaobao Tech
DaTaobao Tech
Aug 16, 2022 · Backend Development

Understanding esModuleInterop: CommonJS vs ES Module in TypeScript

The article explains how toggling TypeScript's esModuleInterop flag changes import behavior between CommonJS and ES Module syntax, causing runtime errors like “TPS is not a constructor,” and offers fixes—either revert the flag and use namespace imports or enable it and use default imports.

CommonJSESModuleNode.js
0 likes · 7 min read
Understanding esModuleInterop: CommonJS vs ES Module in TypeScript
ELab Team
ELab Team
Nov 19, 2021 · Frontend Development

Mastering Front-End Module Systems: From IIFE to ES6 Modules

This article provides a comprehensive overview of front‑end modularization, covering the definition of modules, the evolution from early script tags through AMD/CMD to CommonJS and ES6, and explains why modern module syntax enables better dependency management and tree‑shaking.

AMDCommonJSRequireJS
0 likes · 13 min read
Mastering Front-End Module Systems: From IIFE to ES6 Modules
Sohu Tech Products
Sohu Tech Products
Aug 25, 2021 · Backend Development

Understanding Node.js Module System and Implementing a Custom Require Loader

This article explains how Node.js implements module loading using the CommonJS wrapper, demonstrates the role of the built‑in vm module for isolated execution, and walks through building a custom Require function with path resolution, file reading, extension handling, caching, and automatic extension resolution.

CommonJSJavaScriptNode.js
0 likes · 14 min read
Understanding Node.js Module System and Implementing a Custom Require Loader
ELab Team
ELab Team
Aug 6, 2021 · Fundamentals

Fixing JS Module Errors: CommonJS vs ES6 and Circular Dependency Solutions

This article examines why JavaScript applications encounter runtime errors when using CommonJS or ES6 modules, explains the underlying module loading mechanisms, highlights pitfalls of circular dependencies, and provides practical solutions—including webpack plugins and code adjustments—to reliably resolve such issues.

CommonJSModulescircular-dependency
0 likes · 20 min read
Fixing JS Module Errors: CommonJS vs ES6 and Circular Dependency Solutions
ByteDance Dali Intelligent Technology Team
ByteDance Dali Intelligent Technology Team
Jun 11, 2021 · Backend Development

Node.js Package Module Import/Export Rules and Conditional Exports – A Comprehensive Guide

This article explains the latest Node.js package module specifications, covering how the "type", "exports", and "imports" fields in package.json determine ESM or CommonJS loading, the history of version changes, subpath mappings, conditional exports, and best practices for dual-module packages.

CommonJSESMExports
0 likes · 27 min read
Node.js Package Module Import/Export Rules and Conditional Exports – A Comprehensive Guide
vivo Internet Technology
vivo Internet Technology
Jun 29, 2020 · Frontend Development

Understanding CommonJS and Front-End Module Systems

The article traces JavaScript’s module evolution from inline scripts to CommonJS’s file‑scoped exports and require system, explains its minimal bundler implementation, compares AMD and CMD alternatives, and finally introduces native ES6 import/export syntax, highlighting key differences and the gradual deprecation of CommonJS.

AMDCommonJSNode.js
0 likes · 21 min read
Understanding CommonJS and Front-End Module Systems
政采云技术
政采云技术
Dec 8, 2019 · Backend Development

Exploring the Source Code of the Node.js Module System

This article delves into Node.js’s module system, explaining the CommonJS specification, how Node implements module loading, resolution, caching, and execution, and provides detailed analysis of core source code including Module constructor, require, _load, _resolveFilename, and file extension handling.

CommonJSNode.jsmodule system
0 likes · 17 min read
Exploring the Source Code of the Node.js Module System
Node Underground
Node Underground
Aug 27, 2019 · Backend Development

Master Node.js Module System: Loading, Caching, and CommonJS Pitfalls

This article explains Node.js's CommonJS module system, covering how require loads modules, the role of module.exports versus exports, module classification, loading order, caching behavior, circular dependencies, and provides practical code examples for interview preparation.

CommonJSExportsNode.js
0 likes · 10 min read
Master Node.js Module System: Loading, Caching, and CommonJS Pitfalls
Node Underground
Node Underground
Aug 11, 2019 · Backend Development

Mastering Node.js ES Modules: From CommonJS to Native Imports

This article explains how Node.js 12 introduced native ECMAScript Modules, compares them with CommonJS, shows how to enable the feature, configure package.json, and adapt code using import/export, import.meta, and other module‑specific changes.

CommonJSES ModulesModules
0 likes · 10 min read
Mastering Node.js ES Modules: From CommonJS to Native Imports
360 Tech Engineering
360 Tech Engineering
Mar 19, 2019 · Backend Development

Understanding Node.js ES Modules and CommonJS Interoperability

This article explains how Node.js supports ES modules since version 8.5, compares CommonJS and ES module loading behaviors, demonstrates interoperability techniques with code examples, and outlines the practical implications of using the experimental‑modules flag for backend development.

Backend DevelopmentCommonJSES Modules
0 likes · 8 min read
Understanding Node.js ES Modules and CommonJS Interoperability
Tencent IMWeb Frontend Team
Tencent IMWeb Frontend Team
Jan 16, 2018 · Frontend Development

Mastering JavaScript Module Systems: From CommonJS to ES6 and Beyond

This comprehensive guide explores JavaScript module mechanisms—including CommonJS, Node.js core and file modules, AMD, CMD, UMD, and ES6 import/export—detailing their advantages, loading strategies, code examples, circular dependencies, and best practices for modern front‑end and back‑end development.

AMDCommonJSModules
0 likes · 25 min read
Mastering JavaScript Module Systems: From CommonJS to ES6 and Beyond
Qunar Tech Salon
Qunar Tech Salon
Jun 2, 2017 · Frontend Development

A Review of Frontend Moduleization Development and Tooling

This article reviews the evolution of frontend moduleization over the past decade, discusses the problems of early script inclusion, presents various solutions such as namespaces, closures, CommonJS, ES6 modules, and modern build tools, and illustrates each approach with concrete JavaScript code examples.

CommonJSJavaScriptNode
0 likes · 16 min read
A Review of Frontend Moduleization Development and Tooling
Aotu Lab
Aotu Lab
Apr 28, 2017 · Backend Development

Why ES6 Modules in Node.js Are Harder Than You Think – An Inside Look

James M. Snell explains the fundamental differences between CommonJS and ES6 modules in Node.js, why loading and execution timing matter, the challenges of supporting both systems, and the roadmap for native ES6 module support.

Asynchronous LoadingBackend DevelopmentCommonJS
0 likes · 9 min read
Why ES6 Modules in Node.js Are Harder Than You Think – An Inside Look