|
25 | 25 | * BROWSER POLYFILLS
|
26 | 26 | */
|
27 | 27 |
|
28 |
| -/** IE9, IE10 and IE11 requires all of the following polyfills. **/ |
29 |
| -// import 'core-js/es6/symbol'; |
30 |
| -// import 'core-js/es6/object'; |
31 |
| -// import 'core-js/es6/function'; |
32 |
| -// import 'core-js/es6/parse-int'; |
33 |
| -// import 'core-js/es6/parse-float'; |
34 |
| -// import 'core-js/es6/number'; |
35 |
| -// import 'core-js/es6/math'; |
36 |
| -// import 'core-js/es6/string'; |
37 |
| -// import 'core-js/es6/date'; |
38 |
| -// import 'core-js/es6/array'; |
39 |
| -// import 'core-js/es6/regexp'; |
40 |
| -// import 'core-js/es6/map'; |
41 |
| -// import 'core-js/es6/weak-map'; |
42 |
| -// import 'core-js/es6/set'; |
43 |
| - |
44 | 28 | /** IE10 and IE11 requires the following for NgClass support on SVG elements */
|
45 | 29 | // import 'classlist.js'; // Run `npm install --save classlist.js`.
|
46 | 30 |
|
47 |
| -/** IE10 and IE11 requires the following for the Reflect API. */ |
48 |
| -// import 'core-js/es6/reflect'; |
49 |
| - |
50 |
| - |
51 |
| -/** Evergreen browsers require these. **/ |
52 |
| -// Used for reflect-metadata in JIT. If you use AOT (and only Angular decorators), you can remove. |
53 |
| -import 'core-js/es7/reflect'; |
54 |
| - |
55 |
| - |
56 | 31 | /**
|
57 |
| - * Required to support Web Animations `@angular/platform-browser/animations`. |
58 |
| - * Needed for: All but Chrome, Firefox and Opera. http://caniuse.com/#feat=web-animation |
59 |
| - **/ |
| 32 | + * Web Animations `@angular/platform-browser/animations` |
| 33 | + * Only required if AnimationBuilder is used within the application and using IE/Edge or Safari. |
| 34 | + * Standard animation support in Angular DOES NOT require any polyfills (as of Angular 6.0). |
| 35 | + */ |
60 | 36 | // import 'web-animations-js'; // Run `npm install --save web-animations-js`.
|
61 | 37 |
|
62 |
| - |
| 38 | +/** |
| 39 | + * By default, zone.js will patch all possible macroTask and DomEvents |
| 40 | + * user can disable parts of macroTask/DomEvents patch by setting following flags |
| 41 | + * because those flags need to be set before `zone.js` being loaded, and webpack |
| 42 | + * will put import in the top of bundle, so user need to create a separate file |
| 43 | + * in this directory (for example: zone-flags.ts), and put the following flags |
| 44 | + * into that file, and then add the following code before importing zone.js. |
| 45 | + * import './zone-flags.ts'; |
| 46 | + * |
| 47 | + * The flags allowed in zone-flags.ts are listed here. |
| 48 | + * |
| 49 | + * The following flags will work for all browsers. |
| 50 | + * |
| 51 | + * (window as any).__Zone_disable_requestAnimationFrame = true; // disable patch requestAnimationFrame |
| 52 | + * (window as any).__Zone_disable_on_property = true; // disable patch onProperty such as onclick |
| 53 | + * (window as any).__zone_symbol__UNPATCHED_EVENTS = ['scroll', 'mousemove']; // disable patch specified eventNames |
| 54 | + * |
| 55 | + * in IE/Edge developer tools, the addEventListener will also be wrapped by zone.js |
| 56 | + * with the following flag, it will bypass `zone.js` patch for IE/Edge |
| 57 | + * |
| 58 | + * (window as any).__Zone_enable_cross_context_check = true; |
| 59 | + * |
| 60 | + */ |
63 | 61 |
|
64 | 62 | /***************************************************************************************************
|
65 | 63 | * Zone JS is required by default for Angular itself.
|
66 | 64 | */
|
67 | 65 | import 'zone.js/dist/zone'; // Included with Angular CLI.
|
68 | 66 |
|
69 | 67 |
|
70 |
| - |
71 | 68 | /***************************************************************************************************
|
72 | 69 | * APPLICATION IMPORTS
|
73 | 70 | */
|
0 commit comments