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.
Amadou is a Frontend Software Engineer from Senegal 🇸🇳 based in France 🇫🇷. He's a Google Developer Expert in Angular, and currently works at Air France.
Thank you for the article. I was worried about changing the target and supporting less browsers. Although I can't find any browser that doesn't support es2015 anymore.(other than ie). But still a relief.
My other( perhaps rather primitive) question would be, What is the difference between the browserList and polyfills ?, they seem to be doing the same thing..
Hi , can i remove the defer attribute from the index.html script tags , because that attribute is not supported to theamleaf resolver ,
or else if there any configuration to organize that defer attribute like
how I can disable Differential Loading?
open
tsconfig.jsonand 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: "es5is correct.Thank you!
i added :
to package.json and got
Very nice and well written article Sugury.
Nice article, is the Safari 10.1 bug covered in the module-nomodule approach here? gist.github.com/samthor/64b114e4a4...
If so, how is double download in IE11 and triple download in Edge prevented?
github.com/angular/angular-cli/blo...
Safari's problem is covered by CLI. I don't know about Edge.
Thank you for the article. I was worried about changing the target and supporting less browsers. Although I can't find any browser that doesn't support es2015 anymore.(other than ie). But still a relief.
My other( perhaps rather primitive) question would be, What is the difference between the browserList and polyfills ?, they seem to be doing the same thing..
Hi , can i remove the defer attribute from the index.html script tags , because that attribute is not supported to theamleaf resolver ,
or else if there any configuration to organize that defer attribute like
current script is like
....................... Expected <script src="runtime.js" defer="defer"><br> .........</p> <p>thank you </p>
Hi did you found a solution for this. I'm also facing the same issue....