logoalt Hacker News

vmspyesterday at 11:28 PM3 repliesview on HN

Hasn't Node been able to run TypeScript for a couple of versions? Why's the transpiler needed?


Replies

chirsztoday at 12:24 PM

The Node.js team removed `--experimental-transform-types` from Node.js v26. This makes native, full TypeScript support impossible.

https://github.com/nodejs/typescript/issues/51#issuecomment-...

zamadatixtoday at 2:25 AM

Node's built-in Typescript support is just for type stripping. That works for a massive amount of TypeScript syntax, but not all of it. It also doesn't bother actually checking the types, just removing them so it runs. You also lose things like tsconfig.

This looks to support both the built-in stripping as well as actual TypeScript.

show 1 reply
conartist6today at 1:01 AM

It says "injects polyfills as needed for APIs like `Worker`, `Temporal`, etc"