2 ms·
Regarding TypeScript toolchains: esbuild and node make a dream combination. The configuration comes down to 3-4 command line parameters, and it's fast enough th
by nicoburns 5y ago
Regarding TypeScript toolchains: esbuild and node make a dream combination. The configuration comes down to 3-4 command line parameters, and it's fast enough that you don't need to use any kind of incremental compilation mode. You can just recompile the world before restarting node each time. It's under 0.1 of a second for our projects at work! (and that's on a fairly slow machine where the node process startup time itself can be a few seconds when under load)
- mekster 5y agoIncremental compilation with "tsc -w" is instant as well, triggers automatically on file changes and does type checking too. What am I missing?
- nicoburns 5y ago1. It's only instant on small projects in my experience. I've worked on projects where it would take closer to 10 seconds without type checking or 30 seconds with. 2. It's a bit of a pain to have to run 2 separate processes. With esbuild you have a single watch process that does compile+run rather than a compile watch and a separate run watch.