how to turn off differential loading in Angular v8?

后端 未结 10 1926
暖寄归人
暖寄归人 2020-12-05 02:47

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 f

10条回答
  •  死守一世寂寞
    2020-12-05 02:58

    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

    "compilerOptions": {
        ...
        "target": "es2015",
        ...
    }
    

    and in angular.json change es5BrowserSupport to false

    project => app => architect => build => 
    "options": {
        ...
        "es5BrowserSupport": false
        ...
    }
    

提交回复
热议问题