-
Notifications
You must be signed in to change notification settings - Fork 12k
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
[Bug] Angular-cli 8.1 insists on building for es5 while I want only es2015 #14991
Comments
|
@mgechev , |
Hi @zijianhuang, indeed that a single build when ES5 support is not needed but with your browserslist query you are stating that you want ES5 support. You should be more specific in your query and specify the browsers that you want to support example;
Thanks. |
@zijianhuang , The proper answer is that you have to exclude Edge from browserslist, even though you support it. See #14580 Update: An even better option is to upgrade to @angular/cli 8.1.0 where the problem with Edge is fixed, thanks to @alan-agius4 . |
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. |
🐞 Bug report
Command (mark with an
x
)Description
I want es2015 codes only for my LOB app running on Chrome primarily though Firefox and Edge may be supported. I had done respective config in tsconfig.json and package.json.
🔬 Minimal Reproduction
Prerequisites:
Angular 8.1
Angular CLI 8.1
In package.json, I have:
as suggested in https://github.com/browserslist/browserslist
In tsconfig.json,
🔥 Exception or Error
Both es5 and es2015 codes are produced, while https://angular.io/guide/deployment#differential-loading suggested a single build.
The text was updated successfully, but these errors were encountered: