𝗡𝗼𝗱𝗲.𝗷𝘀 𝟮𝟰 𝗡𝗮𝘁𝗶𝘃𝗲 𝗧𝘆𝗽𝗲𝗦𝗰𝗿𝗶𝗽𝘁

The build step is almost dead.

Node.js 24 now supports TypeScript natively. You can run .ts files in production without a build step. This removes the friction between your code and your execution.

How it works: The runtime parses your TypeScript syntax. It strips type annotations at load time. It then executes the resulting JavaScript.

Key facts about this change:

This simplifies your deployment. You no longer need to manage tsc output directories or complex source map configurations for deployment. Your source code becomes your single source of truth.

Watch out for these limitations:

If you use path aliases like @/utils, you still need a bundler or esbuild.

How to use it: You can run your server directly with Node: node src/server.ts

For better debugging, use the source maps flag: node --enable-source-maps src/server.ts

This is a great choice for microservices with simple dependency graphs. You gain speed in deployment. However, if you need heavy optimization or minification, stick to a traditional build pipeline.

The goal is to match the tool to your specific needs.

Source: https://dev.to/jsmanifest/nodejs-24-native-typescript-running-ts-files-in-production-without-a-build-step-1b0p