How do I transpile TypeScript to ES6?

前端 未结 4 637
甜味超标
甜味超标 2020-12-29 03:27

Basically I need to be able to write TypeScript code in my IDE (this introduces great ease to development), compile it to ES6 and then apply babel.js (as all br

4条回答
  •  隐瞒了意图╮
    2020-12-29 03:54

    Yes.

    You can target TypeScript compiler to ES6.

    For example add this to your command line args:

    --target es6
    

提交回复
热议问题