Skip to content

Commit 60ce7b2

Browse files
committed
fix(polyfill): import web-animations-js
1 parent 92fd2df commit 60ce7b2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
"ts-helpers": "^1.1.2",
5656
"tsickle": "^0.35.0",
5757
"tslib": "^1.9.3",
58+
"web-animations-js": "^2.3.1",
5859
"zone.js": "^0.9.1"
5960
},
6061
"devDependencies": {

src/polyfills.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ import 'mutationobserver-shim';
4949
* Required to support Web Animations `@angular/platform-browser/animations`.
5050
* Needed for: All but Chrome, Firefox and Opera. http://caniuse.com/#feat=web-animation
5151
**/
52-
// import 'web-animations-js'; // Run `npm install --save web-animations-js`.
52+
import 'web-animations-js'; // Run `npm install --save web-animations-js`.
5353

5454
/**
5555
* By default, zone.js will patch all possible macroTask and DomEvents
@@ -59,7 +59,6 @@ import 'mutationobserver-shim';
5959
(window as any).__Zone_disable_requestAnimationFrame = true; // disable patch requestAnimationFrame
6060
(window as any).__Zone_disable_on_property = true; // disable patch onProperty such as onclick
6161
(window as any).__zone_symbol__BLACK_LISTED_EVENTS = ['scroll', 'mousemove']; // disable patch specified eventNames
62-
(window as any).__Zone_enable_cross_context_check = true;
6362

6463
/*
6564
* in IE/Edge developer tools, the addEventListener will also be wrapped by zone.js

0 commit comments

Comments
 (0)