22 * Load `$localize` onto the global scope - used if i18n tags appear in Angular templates.
33 */
44import '@angular/localize/init' ;
5+
56/**
67 * This file includes polyfills needed by Angular and is loaded before the app.
78 * You can add your own extra polyfills to this file.
@@ -15,71 +16,56 @@ import '@angular/localize/init';
1516 * automatically update themselves. This includes Safari >= 10, Chrome >= 55 (including Opera),
1617 * Edge >= 13 on the desktop, and iOS 10 and Chrome on mobile.
1718 *
18- * Learn more in https://angular.io/docs/ts/latest/ guide/browser-support.html
19+ * Learn more in https://angular.io/guide/browser-support
1920 */
2021
2122/***************************************************************************************************
2223 * BROWSER POLYFILLS
2324 */
2425
25- /** IE9, IE10 and IE11 requires all of the following polyfills. **/
26+ /** IE11 requires all of the following polyfills. **/
2627import 'core-js' ;
2728
28- /** IE10 and IE11 requires the following for NgClass support on SVG elements */
29+ /** IE11 requires the following for NgClass support on SVG elements */
2930// import 'classlist.js'; // Run `npm install --save classlist.js`.
3031
31- /** IE10 and IE11 requires the following for the Reflect API. */
32- import 'core-js/es/reflect' ;
33-
34- // for IE10
35- import 'mutationobserver-shim' ;
36-
3732/**
38- * Required to support Web Animations `@angular/platform-browser/animations`.
39- * Needed for: All but Chrome, Firefox and Opera. http://caniuse.com/#feat=web-animation
40- **/
41- import 'web-animations-js' ; // Run `npm install --save web-animations-js`.
33+ * Web Animations `@angular/platform-browser/animations`
34+ * Only required if AnimationBuilder is used within the application and using IE/Edge or Safari.
35+ * Standard animation support in Angular DOES NOT require any polyfills (as of Angular 6.0).
36+ */
37+ // import 'web-animations-js'; // Run `npm install --save web-animations-js`.
4238
4339/**
4440 * By default, zone.js will patch all possible macroTask and DomEvents
4541 * user can disable parts of macroTask/DomEvents patch by setting following flags
42+ * because those flags need to be set before `zone.js` being loaded, and webpack
43+ * will put import in the top of bundle, so user need to create a separate file
44+ * in this directory (for example: zone-flags.ts), and put the following flags
45+ * into that file, and then add the following code before importing zone.js.
46+ * import './zone-flags';
47+ *
48+ * The flags allowed in zone-flags.ts are listed here.
49+ *
50+ * The following flags will work for all browsers.
51+ *
52+ * (window as any).__Zone_disable_requestAnimationFrame = true; // disable patch requestAnimationFrame
53+ * (window as any).__Zone_disable_on_property = true; // disable patch onProperty such as onclick
54+ * (window as any).__zone_symbol__UNPATCHED_EVENTS = ['scroll', 'mousemove']; // disable patch specified eventNames
55+ *
56+ * in IE/Edge developer tools, the addEventListener will also be wrapped by zone.js
57+ * with the following flag, it will bypass `zone.js` patch for IE/Edge
58+ *
59+ * (window as any).__Zone_enable_cross_context_check = true;
60+ *
4661 */
4762
48- ( window as any ) . __Zone_disable_requestAnimationFrame = true ; // disable patch requestAnimationFrame
49- ( window as any ) . __Zone_disable_on_property = true ; // disable patch onProperty such as onclick
50- ( window as any ) . __zone_symbol__BLACK_LISTED_EVENTS = [ 'scroll' , 'mousemove' ] ; // disable patch specified eventNames
51-
52- /*
53- * in IE/Edge developer tools, the addEventListener will also be wrapped by zone.js
54- * with the following flag, it will bypass `zone.js` patch for IE/Edge
55- */
56- ( window as any ) . __Zone_enable_cross_context_check = true ;
57-
5863/***************************************************************************************************
5964 * Zone JS is required by default for Angular itself.
6065 */
6166import 'zone.js/dist/zone' ; // Included with Angular CLI.
6267
6368
64-
6569/***************************************************************************************************
6670 * APPLICATION IMPORTS
6771 */
68-
69- /***************************************************************************************************
70- * IE10 issues
71- */
72-
73- /**
74- * IE10 - some CSS3 properties and HTML5 elements are not fully supported or require prefixed properties for full functionality
75- * to let Autoprefixer use old flexbox prefixes - add a browserslist property to the package.json file:
76- * "browserslist": [
77- * "last 2 versions",
78- * "not ie < 10",
79- * ]
80- */
81-
82- /**
83- * IE10 - TypeError: Object doesn't support property or method 'getRootNode'
84- */
85- // import 'get-root-node-polyfill/implement'; // Run `npm i get-root-node-polyfill`.
0 commit comments