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

These days, I would not write a pure JS app if I could help it. JS is so dynamic that TS is a mandatory step for safety whenever it’s possible to use the TSC compiler.


I've found tsc --noEmit with esbuild is the magic combination.

This way you can split the type checking from the actual bundling, as esbuild only does the latter.


esbuild can bundle typescript files directly, you don't need tsc to strip types

edit: nevermind i get what you're saying. check types with tsc and dev work with esbuild




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

Search: