How do I make Angular 8 compatible with IE11?

前端 未结 4 671
时光说笑
时光说笑 2020-12-09 18:30

I upgraded to Angular 8 using ng update. It ran its migration scripts which (among other things) removed the es6/es7 imports in polyfills.ts. From

4条回答
  •  感动是毒
    2020-12-09 18:55

    I have solved my polyfill.ts issues with IE 11 by doing the following:

    1. Run npm install --save web-animations-js
    2. Uncomment line import 'web-animations-js' inside polyfill.ts
    3. Change target value from 'es2015' to 'es5' inside tsconfig.json.

    IE 11 requires 'es5'.

提交回复
热议问题