5 ms·
on the contrary - tsc is so slow that most people use babel to strip out types in production.
by swyx 6y ago
on the contrary - tsc is so slow that most people use babel to strip out types in production.
- 0x000000E2 6y agoEverything is transpired to JS before it hits prod. But yeah it's slow
- andrew_ 6y agobingo. tsc for dev. sucrase for prod.
- simlevesque 6y agoWhat does "strip out types in production" means ? I've never heard of that. For what I do, Babel is the slow part. switching babel to esbuild (still with tsc) divided my build times by 10.
- manigandham 6y agoThe types aren't real anyway, what is there to strip out? Do you mean don't type check for production builds?