Re:Babel is used by millions, so why are we running out of m...
by swyx on Tuesday May 11, 2021 @10:30AM
(#27118516)
on the contrary - tsc is so slow that most people use babel to strip out types in production.
[ Parent
| on HN ]
Re:Babel is used by millions, so why are we running out of m...
by simlevesque on Tuesday May 11, 2021 @11:21AM
(#27119171)
What 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.
Re:Babel is used by millions, so why are we running out of m...
by manigandham on Tuesday May 11, 2021 @09:23PM
(#27125636)
The types aren't real anyway, what is there to strip out? Do you mean don't type check for production builds?
Re:Babel is used by millions, so why are we running out of m...
by 0x000000E2 on Tuesday May 11, 2021 @10:57AM
(#27118833)
Everything is transpired to JS before it hits prod.
But yeah it's slow