barbatus / typescript-compiler

TypeScript Compilers for Meteor
14 stars 9 forks source link

Support for async / await #20

Closed tae-jun closed 8 years ago

tae-jun commented 8 years ago

Firstly, I really appreciate for your project!

I love TypeScript & Meteor both :-)

So, the issue goes like this.

Meteor 1.3 supports async / await.

In order to use async / await in TypeScript, we should set compilerOptions.target to "es6" in tsconfig.ts

However, this compiles files into ES6, which is not suitable for Meteor's Node.js version 0.10.x

So, it throws an error.

Do you have any plans to deal with this?

Or, Meteor version 1.4 is gonna be released soon, and its Node version is 4.x.

So maybe it's better just wait for it?

What's your plan?

barbatus commented 8 years ago

Not sure that setting target:es6 for Node 4.0 is safe since there might be not all features of ES6 supported. But TypeScript@2.0 allows to preset specific ES6 features, so hopefully the next version will be for Meteor 1.4 and based on TypeScript2.0

tae-jun commented 8 years ago

Thanks for the answer!

I look forward to your next release :-)

Have a nice day!

barbatus commented 8 years ago

ES6 is now supported