Fundamentals of ESM/CJS modules and their Heresies
-
Updated
Aug 7, 2025 - TypeScript
Fundamentals of ESM/CJS modules and their Heresies
Resolves Node-style directories with `index.js` files in Rollup
Test the npm package your users actually install across real Node.js and TypeScript consumer environments.
A Rollup plugin that automatically transforms ESM imports into Node.js-compatible nodenext format by adding explicit file extensions (.js/.mjs). Perfect for libraries needing to work with TypeScript's "moduleResolution": "nodenext".
Finds TypeScript path aliases that survive the build and throw MODULE_NOT_FOUND at runtime — the error tsc will never give you.
Repro: when Foo.svelte and Foo.svelte.ts coexist, TypeScript and Vite resolve the same './Foo.svelte' import to different modules
CLI that diagnoses and auto-fixes TypeScript module resolution errors by rewriting your tsconfig paths and baseUrl
A patched fork of the deno_resolver crate.
Frontend build-parity benchmark for reproducing esbuild module resolution with browser import maps across Git, npm workspaces, Windows CI, and native ES modules.
Deno-first esbuild tooling with native and WASM APIs.
To associate your repository with the module-resolution topic, visit your repo's landing page and select "manage topics."