Hacker News new | ask | show | jobs
by williamcotton 3896 days ago
There's no need to choose between TypeScript or Babel!

You can use TypeScript with --target es6 and then use babel as a secondary transpiler.

2 comments

Isn't the problem that the TypeScript compiler doesn't support all of the ES6 features that Babel does?
This was my first thought too, but this screws up source maps and I can't think of how to fix source maps when using two transpilers. Any ideas?