Does this just pass the --experimental-strip-types flag to node?
webstrand•52m ago
Last I knew, it did the transpilation itself so that it could handle module path resolution manually.
basetensucks•29m ago
It does more, it also includes a compatibility layer allowing you to require ESM packages in CJS. It's quite handy!
andrus•23m ago
Don’t recent Node.js releases support this already? require(esm) was back ported to Node.js 20 in February
molszanski•53m ago
I love tsx. Lately I’ve been also using bun for the same purpose.
chmod775•46m ago
That's some terrible naming. Now there's two things "tsx" stands for in the TypeScript ecosystem.
subarctic•6m ago
Yup. But it's useful so I use it
fjcero•28m ago
Use bun
jauco•25m ago
Newer versions of node can run typescript directly[1]. The one where types are simply stripped is considered stable[2] (but you can’t use syntax that node doesn’t understand, such as enums).
They’re working on making features work that require some transpilation as well
monarchwadia•1h ago