-
Notifications
You must be signed in to change notification settings - Fork 12k
Choose ES target level #14639
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
The desired output target can be configured via the application's |
@clydin Is it possible to build only for ES2015? |
@williangd yes it is, to know if cli should build es5, itsimply check this page : https://caniuse.com/#feat=es6-module Inside There are two possiblities to build es2015 only:
or less specific
If you visit my caniuse es6-module support link you will see all these versions are green. Edge is green but not es2015 ready because has little note (6) at the corner top-left : N.B. Remove browserslist will not works as empty content ! |
Through trial and error, it seems the Can't find any documentation on this file. :/ |
You can find details regarding the file including query options, file resolution, and alternative configuration locations here: https://github.com/browserslist/browserslist/blob/master/README.md |
Thanks @clydin . In defense of my ignorance, something Angular-specific is relevant, because the version 8 upgrade schematic includes moving |
@pauldraper thanks a lot. you saved my day. :) But it's crazy that the browserlist file is in the |
@pauldraper it depends more on the angular.json "root" path of the project. For example if you have a mono style workspace where your projects are under |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
It appears that Angular CLI outputs only in ES5.
I would like to be able to choose the ES target, e.g. ES2015.
This can produce smaller, faster, and more readable code.
(And yes, sources maps can account for the readability part, but they have their own sets of disadvantages, including terrible performance for the CLI.)
Compare
and
The text was updated successfully, but these errors were encountered: