Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The problem with `esbuild` is that it silently does the wrong thing whenever there are type errors. The main job of a compiler is producing error messages; actually producing an output file is secondary.

`tsc` is so slow that it seems the least bad approach in use is "automatically run it asynchronously in the background", which is not confidence-inspiring.



You can separate type checking and building. Have tsc to check types and esbuild to build. These can run in parallel, or at different stages of your pipeline.

The background asynchronous incremental typechecking is how most typescript devs are working anyway, as issues are immediately highlighted or otherwise output in your dev environment of choice (whether that be inline, or as output in the console).




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: