Liran Tal 1/14/2025

TypeScript in 2025 with ESM and CJS npm publishing is still a mess

Read Original

This article examines the current state of the JavaScript/TypeScript ecosystem in 2025, focusing on the persistent complexities of dual-publishing packages for both ESM and CJS module systems. It discusses recent developments like native ESM support in Node.js v22/v23 and the new JSR.io registry, while detailing a practical build toolchain using tsup to manage TypeScript compilation and module output.

TypeScript in 2025 with ESM and CJS npm publishing is still a mess

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week