Conditional Exports (node/browser) + Correct Types
How to publish different entry points for Node vs browser (or edge) using package.json exports conditions, without breaking TypeScript consumers.
Practice
Search by concept, narrow to a roadmap, or pick a tag to focus on the exact topic you want to rehearse.
5 articles
How to publish different entry points for Node vs browser (or edge) using package.json exports conditions, without breaking TypeScript consumers.
How to use tsconfig paths safely across Next.js, bundlers, Node scripts, and tsc builds—without ‘works locally, fails in prod’.
How TypeScript resolves imports in modern toolchains, when to use NodeNext vs bundler, and how flags like verbatimModuleSyntax affect real projects.
How to structure multi-entry TypeScript packages with package.json exports, prevent deep imports, and ship correct .d.ts for consumers.
An interview-ready guide to JavaScript modules: ESM vs CommonJS, named vs default exports, live bindings, top-level await, Node interop, and the TypeScript settings that make it all line up.