5 topics in this chapter
How require() works internally -- the Module._load chain, source wrapping, compilation, and the module cache.
28 min read
Node.js module resolution -- how specifiers become file paths, node_modules traversal, and package.json exports.
28 min read
ES Modules in Node.js -- static analysis, the parse-link-evaluate pipeline, and how Node determines module format.
29 min read
Interop between CommonJS and ES Modules -- require of ESM, import of CJS, dual packages, and conditional exports.
29 min read
import.meta properties, the ESM module cache, and how circular dependencies resolve in ES Modules.
25 min read