1818 * BROWSER POLYFILLS
1919 */
2020
21- /** IE9, IE10 and IE11 requires all of the following polyfills. **/
21+ /** IE9, IE10, IE11, and Chrome <55 requires all of the following polyfills.
22+ * This also includes Android Emulators with older versions of Chrome and Google Search/Googlebot
23+ */
24+
2225import 'core-js/es6/symbol' ;
2326import 'core-js/es6/object' ;
2427import 'core-js/es6/function' ;
@@ -34,13 +37,6 @@ import 'core-js/es6/map';
3437import 'core-js/es6/weak-map' ;
3538import 'core-js/es6/set' ;
3639
37- /**
38- * If the application will be indexed by Google Search, the following is required.
39- * Googlebot uses a renderer based on Chrome 41.
40- * https://developers.google.com/search/docs/guides/rendering
41- **/
42- // import 'core-js/es6/array';
43-
4440/** IE10 and IE11 requires the following for NgClass support on SVG elements */
4541// import 'classlist.js'; // Run `npm install --save classlist.js`.
4642
@@ -51,24 +47,33 @@ import 'core-js/es6/set';
5147 * Web Animations `@angular/platform-browser/animations`
5248 * Only required if AnimationBuilder is used within the application and using IE/Edge or Safari.
5349 * Standard animation support in Angular DOES NOT require any polyfills (as of Angular 6.0).
54- ** /
50+ */
5551// import 'web-animations-js'; // Run `npm install --save web-animations-js`.
5652
5753/**
5854 * By default, zone.js will patch all possible macroTask and DomEvents
5955 * user can disable parts of macroTask/DomEvents patch by setting following flags
56+ * because those flags need to be set before `zone.js` being loaded, and webpack
57+ * will put import in the top of bundle, so user need to create a separate file
58+ * in this directory (for example: zone-flags.ts), and put the following flags
59+ * into that file, and then add the following code before importing zone.js.
60+ * import './zone-flags.ts';
61+ *
62+ * The flags allowed in zone-flags.ts are listed here.
63+ *
64+ * The following flags will work for all browsers.
65+ *
66+ * (window as any).__Zone_disable_requestAnimationFrame = true; // disable patch requestAnimationFrame
67+ * (window as any).__Zone_disable_on_property = true; // disable patch onProperty such as onclick
68+ * (window as any).__zone_symbol__BLACK_LISTED_EVENTS = ['scroll', 'mousemove']; // disable patch specified eventNames
69+ *
70+ * in IE/Edge developer tools, the addEventListener will also be wrapped by zone.js
71+ * with the following flag, it will bypass `zone.js` patch for IE/Edge
72+ *
73+ * (window as any).__Zone_enable_cross_context_check = true;
74+ *
6075 */
6176
62- // (window as any).__Zone_disable_requestAnimationFrame = true; // disable patch requestAnimationFrame
63- // (window as any).__Zone_disable_on_property = true; // disable patch onProperty such as onclick
64- // (window as any).__zone_symbol__BLACK_LISTED_EVENTS = ['scroll', 'mousemove']; // disable patch specified eventNames
65-
66- /*
67- * in IE/Edge developer tools, the addEventListener will also be wrapped by zone.js
68- * with the following flag, it will bypass `zone.js` patch for IE/Edge
69- */
70- // (window as any).__Zone_enable_cross_context_check = true;
71-
7277/***************************************************************************************************
7378 * Zone JS is required by default for Angular itself.
7479 */
0 commit comments