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
Yes, You can.
Either by adding --target es2015
, or by adding target
to Your tsconfig.json
:
{
"compilerOptions": {
"target": "es2015"
}
}
Supported options for target are:
There are a lot of more config options. You can explore them here: Compiler options
Some options are only allowed in tsconfig.json
, and not through command-line switches.