rangle-starter
rangle-starter copied to clipboard
Update typescript dependencies to 2.1.x to simplify Webpack configuration [Angular 2]
In our Angular 2 build system we are using a combination of Typescript and Babel to have the best of both transpilers. I'm pretty sure the only reason we were doing this is because we wanted to use rest
and spread
operators which wasn't supported by Typescript 2.0.x. Typescript 2.1.x now supports those operators so we no longer need to add Babel into the mix and we can simplify the build system.
I would love to add this in but there is an issue with @ngtools/webpack
where AoT fails with any versions higher than:
- angular: 2.2.4
- router: 3.2.4
- typescript: 2.0.10
Lets keep an eye on the two affected errors:
It looks like from the release notes that CLI beta 23 is supposed to unlock the angular version from 2.2.x but as of right now they haven't released it to npm yet and @ngtools/[email protected]
just fails silently when trying to build. Hopefully it will also support typescript 2.1.x