Understanding Package Resolution in Node.js
watch on portal.gitnation.org ↗https://portal.gitnation.org/contents/understanding-package-resolution-in-nodejssummary
Covers how Node.js resolves packages for CommonJS and ES modules, including how package.json fields and the package.json loader affect module import/export and module type determination (via file extensions and package.json). Explains module resolution strategies in Node.js—conditional loading and file-extension resolution—and offers tips to improve loading time in ESM applications.
AI-written summary · about
related talks
22mPlease wait... loading: a tale of two loaders
29mExtra Special Modules
30mESM Loaders: Enhancing Module Loading in Node.js
24mNavigating the Wild Seas of Native ES Modules
46mThe journeyman’s guide to modules in Node.js
32mPlease Wait... Loading: A Talk of Two Loaders
32mES Modules in Node JS
30mShipping Node.js packages in 2025