Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
ES6 or TypeScript with transpile? #1064
Just a simple noob question,
If I write wechaty module in
Will there be any transpile going on before nodejs actually run it?
If TypeScript needs transpile, then would wechaty transpile it to ES5 or ES6?
Hello @suntong ,
When you run your
You can learn more about
We currently use ES6 in our ts-config.json settings.
However, if you want to publish an NPM module by yourself, I'll suggest you do transpile to ES6/ES5 by yourself.
Please feel free to let me know if you still have other questions.