Closed
Description
angular-cli: 1.0.0-beta.16
Today angular-cli targets ES5 and then polyfills may allow IE9 support, but 70% of browsers support native ES2015 (Netflix). Targeting ES2015 makes a smaller download & faster execution,
Building a project for both ES5 and ES2015 helps the common ES2015 case.
Typescript has an ES2015 target, and babel-minify is a valid ES2015 minifier. This could also benefit the developer iteration loop.
A fallback mechanism would need development:
- Test for ES2015 (not loading the arriving script if until validated).
- On fail, load to the ES5 bundle (thus making the ES5 UX slower).
Multiple options can be considered for this, like a browser sniffing server-side solution OR abandoning non-ES2015 browsers (a possible future one day).