4 ms·
If you use webpack, you could just add ts-loader as a first loader and babel-loader as a second one. Source-map works great too.
by kimsk112 10y ago
If you use webpack, you could just add ts-loader as a first loader and babel-loader as a second one. Source-map works great too.
- johnny_reilly 10y agoYup - though you need to make use of lib if you want to write es2016 TypeScript and have Babel transpile it. Not too hard to get set up though: http://blog.johnnyreilly.com/2016/09/typescript-20-es2016-and-babel.html?m=1 http://blog.johnnyreilly.com/2016/09/typescript-20-es2016-an...
- nippur72 10y agobefore typescript@next I had exactlt that setup, but sourcemaps were broken despite all my attempts to make them work. Now I'm using ts 2.1 and have completely removed babel out of my build.