Node.js adds ‑‑experimental‑strip‑types flag
Node.js added a flag to execute TypeScript directly with --experimental-strip-types
. This will transpile .ts
source files into JavaScript for execution, although no type-checking will be performed.
$ node --experimental-strip-types script.ts
Not sure when this will get promoted out of experimental, but its presently available in node@23
. Other JavaScript engines, like Deno and Bun have had support for this for some time, but it'll be interesting to see what Node.js getting it does to the ecosystem.