5 ms·
How well does Babel transpile TS? My initial instinct is that I'd trust the real TS compiler over Babel, but I've never tried compiling TS with Babel. I assume
by jasonkillian 8y ago
How well does Babel transpile TS? My initial instinct is that I'd trust the real TS compiler over Babel, but I've never tried compiling TS with Babel.
I assume the real TypeScript compiler still does the type-checking and that would be unaffected by Babel.
- wwwigham 8y agoThe TS team implemented the TS parsing support in Babel. You are correct that the TS compiler is still needed for the typechecker, however.
- jasonkillian 8y agoAh, I didn't realize this, very cool collaboration! For those who are reading this and might find it helpful, here's a link to the official blog post on the work: https://blogs.msdn.microsoft.com/typescript/2018/08/27/typescript-and-babel-7/ https://blogs.msdn.microsoft.com/typescript/2018/08/27/types...