With this configuration, the CLI can recognize all targeted browsers are compatible ES2015. so no differential loading happens. All browsers load es2015 bundles.
If you want to align bundles to es2015, that is correct.
If you want to align bundles to es5, setting target: "es5 is correct.
An unhandled exception occurred: D:\AccFlex_Cloud_Front\accflex-erb contains both browserslist and package.json with browsers
See "C:\Users\m.mousa\AppData\Local\Temp\ng-XowNha\angular-errors.log" for further details.
how I can disable Differential Loading?
open
tsconfig.json
and settarget: "es5"
. Then Angular CLI builds your code with ES5 bundle only.I found a package browserlist, and add to package.json :
"browserlist": [
"last 2 version"
];
What the difference?
With this configuration, the CLI can recognize all targeted browsers are compatible ES2015. so no differential loading happens. All browsers load es2015 bundles.
If you want to align bundles to es2015, that is correct.
If you want to align bundles to es5, setting
target: "es5
is correct.Thank you!
i added :
to package.json and got
either use the browserlist file or the browserlist entry in package.json. You can't use both.