Skip to content

Commit 653847c

Browse files
committed
refactor: add IE polyfills
1 parent 38fa37f commit 653847c

File tree

1 file changed

+20
-19
lines changed

1 file changed

+20
-19
lines changed

src/polyfills.ts

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -19,26 +19,26 @@
1919
*/
2020

2121
/** IE9, IE10 and IE11 requires all of the following polyfills. **/
22-
// import 'core-js/es6/symbol';
23-
// import 'core-js/es6/object';
24-
// import 'core-js/es6/function';
25-
// import 'core-js/es6/parse-int';
26-
// import 'core-js/es6/parse-float';
27-
// import 'core-js/es6/number';
28-
// import 'core-js/es6/math';
29-
// import 'core-js/es6/string';
30-
// import 'core-js/es6/date';
31-
// import 'core-js/es6/array';
32-
// import 'core-js/es6/regexp';
33-
// import 'core-js/es6/map';
34-
// import 'core-js/es6/weak-map';
35-
// import 'core-js/es6/set';
22+
import 'core-js/es6/symbol';
23+
import 'core-js/es6/object';
24+
import 'core-js/es6/function';
25+
import 'core-js/es6/parse-int';
26+
import 'core-js/es6/parse-float';
27+
import 'core-js/es6/number';
28+
import 'core-js/es6/math';
29+
import 'core-js/es6/string';
30+
import 'core-js/es6/date';
31+
import 'core-js/es6/array';
32+
import 'core-js/es6/regexp';
33+
import 'core-js/es6/map';
34+
import 'core-js/es6/weak-map';
35+
import 'core-js/es6/set';
3636

3737
/** IE10 and IE11 requires the following for NgClass support on SVG elements */
3838
// import 'classlist.js'; // Run `npm install --save classlist.js`.
3939

4040
/** IE10 and IE11 requires the following for the Reflect API. */
41-
// import 'core-js/es6/reflect';
41+
import 'core-js/es6/reflect';
4242

4343

4444
/** Evergreen browsers require these. **/
@@ -57,15 +57,16 @@ import 'core-js/es7/reflect';
5757
* user can disable parts of macroTask/DomEvents patch by setting following flags
5858
*/
5959

60-
// (window as any).__Zone_disable_requestAnimationFrame = true; // disable patch requestAnimationFrame
61-
// (window as any).__Zone_disable_on_property = true; // disable patch onProperty such as onclick
62-
// (window as any).__zone_symbol__BLACK_LISTED_EVENTS = ['scroll', 'mousemove']; // disable patch specified eventNames
60+
(window as any).__Zone_disable_requestAnimationFrame = true; // disable patch requestAnimationFrame
61+
(window as any).__Zone_disable_on_property = true; // disable patch onProperty such as onclick
62+
(window as any).__zone_symbol__BLACK_LISTED_EVENTS = ['scroll', 'mousemove']; // disable patch specified eventNames
63+
(window as any).__Zone_enable_cross_context_check = true;
6364

6465
/*
6566
* in IE/Edge developer tools, the addEventListener will also be wrapped by zone.js
6667
* with the following flag, it will bypass `zone.js` patch for IE/Edge
6768
*/
68-
// (window as any).__Zone_enable_cross_context_check = true;
69+
(window as any).__Zone_enable_cross_context_check = true;
6970

7071
/***************************************************************************************************
7172
* Zone JS is required by default for Angular itself.

0 commit comments

Comments
 (0)