-
Notifications
You must be signed in to change notification settings - Fork 12k
Add an option to Disable es5 support in Build #14679
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 |
The default configuration with browserslist generates two bundles. When using Service Workers, this has a detrimental effect on the traffic consumed, since with any update both files are always downloaded. I think this should be fixed so that only one bundle is used in the default configuration (es5) until it is possible to completely abandon the two bundles in the standard configuration. |
Someone please paste the browser configuration , that would generate only es6 bundles. |
Please see my comment above. However, please note that the purpose of the Browserslist file is to represent the required target browsers for the application. The CLI will then use that list of browsers and generate the proper set and type of bundles as well as prefix and optimize the stylesheets for the application. This will ensure that the application will work as intended on the browsers that the application is required to support. Not doing so will cause the application to potentially not function or contain visual issues that may be hard to find or troubleshoot. |
Use |
@saiKumarGanji |
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. |
🚀 Feature request
Description
with the release of Version 8, Both es5 and es2015 files are generated on ng build. e.g.main-es5.js
,main-es2015.js
. Build time also increased due to running two times.Describe the solution you'd like
Add a build parameter that disables generation of *-es5.js files. For a person using only Chrome ( latest) *-es5.js files aren't required. This will speed up the build and reduce number of files.Describe alternatives you've considered
I can manually everytime delete these tags from html `<script src="*-es5.js" type="module">`Stackoverflow post
The text was updated successfully, but these errors were encountered: