Angular-CLI v8 implemented differential loading. But I don't need files built by es5. I want to decrease deploy quantity.
I tried below. But CLI has generated es5 files.
- set
es5browsersupport: false
in angular.json, and got error. - exclude Chrome 41, IE 9-11 and ie_mob 11 from browserList.
Fastest solution: Switch back to
es5
as compilation target in yourtsconfig.json
.As mentioned on Angular official documentation (https://angular.io/guide/deployment#differential-loading):
try changing the
tsconfig.json
target fromes2015
back down toes5
, this disables differential loading.in tsconfig.json set target to es2015 if you want to compile for new version first or set it to es5 to disable diffrential loading
and in angular.json change es5BrowserSupport to false