Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



The TS team implemented the TS parsing support in Babel. You are correct that the TS compiler is still needed for the typechecker, however.


Ah, 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/types...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: