News for hackers. Stuff that matters.
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.
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

Re:Babel is used by millions, so why are we running out of m... by andrew_ on Tuesday May 11, 2021 @11:16AM (#27119104)
bingo. tsc for dev. sucrase for prod.