0

Babel is powerful enough to transform modern code into traditional code. While Typescript can do the same thing as well. So why we need both of them? That makes me very frustrated for long.

If we firstly transforms the code with Ts, is it necessary do it agian with Babel? Is it duplicated?

Singhi John
  • 307
  • 2
  • 10
  • What forces you to use Babel if you have typescript? – Volper Dec 05 '19 at 05:08
  • That Typescript can't do but Babel can forces me to use Babel. @@ – Singhi John Dec 05 '19 at 05:30
  • Babel can `polyfill` Promise, but Ts can't. But why not Typescript supports all the features what Babel has? – Singhi John Dec 05 '19 at 05:31
  • Maybe this will help you: https://stackoverflow.com/questions/32408306/how-to-use-es6-promises-with-typescript – Volper Dec 05 '19 at 05:32
  • 1
    It's not entirely clear to me what you're asking. It sounds like you're asking if you need Babel, or why you need Babel, but your comment demonstrates that you know why. So what do you want to know? – Half Dec 05 '19 at 05:34
  • I think there are some duplicated things both babel and typescript can do. Only Ts is enough if Ts can do everything that babel can. Do Ts & Babel share some features? – Singhi John Dec 05 '19 at 05:45

0 Answers0