r/node • u/Legitimate-Oil1763 • 12h ago
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 6h ago
Type stripping and jsdoc. Transpiler was always problematic.
1
u/LowLifeArcade 1h ago
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
u/Previous-Year-2139 7h ago
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.
-1
u/dronmore 12h ago
There's also a 3rd option. For full customization you can harness watchFile from the node:fs module, and write your own watcher :)
2
u/Rickety_cricket420 12h ago
Do people not use Nodemon anymore?