Webpack: Typescript To Javascript

475 views Asked by At

Ok, So I have beening playing around with learning Angular 2 with TypeScript. I am not a big fan of module loaders, so I thought I would give Webpack a go at building a bundle file, one for Angular 2 code and the other for my code.

However the problem with that is the file size for the vendor file, over 3mb - like 3.76mb :( - So I move over to using System JS, which could be the better option over all. But I still need to convert my Typescript files into ES5 / ES6 .js files, so I am trying to use Webpack (version 2) to do that but nothing I have read explains on how to do that?

If I am not building a bundle, would I be better using Grunt or something like that?

All help most welcome.

Thanks.

0

There are 0 answers