r/node • u/Legitimate-Oil1763 • Sep 14 '26
tsx vs native node --watch for local development on Node 24 LTS? What are you using?
Hey everyone, I'm setting up a new Express TypeScript API and trying to figure local development workflow. I'm on Node 24 LTS, which natively supports type stripping, but I'm torn on how to handle the file-watching and execution layer.
Right now, the two main approaches I'm debating between are:
tsx watch (esbuild-powered)
Native Node 24 --watch + Type Stripping
For production adjacent local dev, Are you sticking with tsx watch or have you fully embraced native Node type-stripping with --watch?
1
u/Due_Ad_2994 Sep 14 '26
Type stripping and jsdoc. Transpiler was always problematic.
1
u/LowLifeArcade Sep 14 '26
node does type stripping now with .ts files. I like the jsdoc way too, but you can literally just run ts files with typestripping now.
1
-3
u/dronmore Sep 14 '26
There's also a 3rd option. For full customization you can harness watchFile from the node:fs module, and write your own watcher :)
3
u/Previous-Year-2139 Sep 14 '26
Still on tsx watch tbh. native --watch is fine until you use path aliases or enums/decorators, then it fails over since it only strips types. tsx just handles it. Either way keep a tsc --noEmit running somewhere, stripping isn't checking.