Re:The TypeScript compiler is now implemented internally wit...
by longrod on Wednesday November 02, 2022 @02:49PM
(#33441016)
Sucrase is faster or really close to SWC (see rhe benchmarks https://github.com/alangpierce/sucrase). Everyone still uses Babel because of the transforms.
And yes, Babel can also be made faster if enough effort is dedicated into it. it's not an impossible feat.
Re:The TypeScript compiler is now implemented internally wit...
by ppseafield on Wednesday November 02, 2022 @03:04PM
(#33441268)
For single core benchmarks only, correct?
The recent conversation was about Vercel benchmarking a tuned Turbopack+SWC vs. a default Vite+Babel, not really an apples to apples comparison. When Vite is configured to use SWC as a compiler, Vite's HMR gets faster; but it's not the default for compatibility reasons.