|
|
|
|
|
by cygned
1682 days ago
|
|
Others will talk about the benefits, so let me give you a few gotchas from us: 1. It does not replace type checks at runtime (in integration layers) 2. Compilation and startup (in backend land) is slow 3. Some tooling seemingly caches (webpack? ts-node?), we regularly run into situations where rebuilding locally works but then building for prod fails with type errors |
|
2. Yes and no. It's not the fastest build out there but if you've enabled incremental builds it's quite quick unless you're touching heavily related-to code (libraries that are imported all over the place). If that's not fast enough for you, I've seen people having very good success with `swc`.
3. I can't speak to webpack, but ts-node shouldn't be caching anything last I looked at it.