How to add Web Animations API polyfill to an Angular 2 project created with Angular CLI

后端 未结 5 1475
佛祖请我去吃肉
佛祖请我去吃肉 2020-11-30 10:17

The Angular 2 animations documentation refers to the Web Animations API polyfill for browsers that don\'t support the native one.

What\'s the proper

5条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-11-30 10:43

    Angular 6 Note - Polyfill no longer required :-)

    Animations Performance Improvements

    We’ve updated our implementation of Animations to no longer need the web animations polyfill. This means that you can remove this polyfill from your application and save approximately 47KB of bundle size, while increasing animations performance in Safari at the same time.

    :-)

    https://blog.angular.io/version-6-of-angular-now-available-cc56b0efa7a4

提交回复
热议问题