Qwertiy
Qwertiy

Reputation: 21520

Mixed compilation of typescript

I want to compile typescript code to any target (ES5, ES6 or newer), but with this mixed target features applied simultaneously:

Is it possible and how I should update my tsconfig?

Upvotes: 1

Views: 32

Answers (1)

basarat
basarat

Reputation: 276363

Is it possible and how I should update my tsconfig?

This is not possible via configuration. With a specific target es6 you get all these features as is, and with target es5 they all get transpiled into something ES5 can run.

More

I cannot think of any JS runtime that would support template strings as is but not support const and let.

Upvotes: 2

Related Questions