3 * Copyright Akveo. All Rights Reserved.
4 * Licensed under the MIT License. See License.txt in the project root for license information.
7 * This file includes polyfills needed by Angular and is loaded before the app.
8 * You can add your own extra polyfills to this file.
10 * This file is divided into 2 sections:
11 * 1. Browser polyfills. These are applied before loading ZoneJS and are sorted by browsers.
12 * 2. Application imports. Files imported after ZoneJS that should be loaded before your main
15 * The current setup is for so-called "evergreen" browsers; the last versions of browsers that
16 * automatically update themselves. This includes Safari >= 10, Chrome >= 55 (including Opera),
17 * Edge >= 13 on the desktop, and iOS 10 and Chrome on mobile.
19 * Learn more in https://angular.io/docs/ts/latest/guide/browser-support.html
22 /***************************************************************************************************
26 /** IE9, IE10 and IE11 requires all of the following polyfills. **/
27 import 'core-js/es6/symbol';
28 import 'core-js/es6/object';
29 import 'core-js/es6/function';
30 import 'core-js/es6/parse-int';
31 import 'core-js/es6/parse-float';
32 import 'core-js/es6/number';
33 import 'core-js/es6/math';
34 import 'core-js/es6/string';
35 import 'core-js/es6/date';
36 import 'core-js/es6/array';
37 import 'core-js/es6/regexp';
38 import 'core-js/es6/map';
39 import 'core-js/es6/set';
41 /** IE10 and IE11 requires the following for NgClass support on SVG elements */
42 import 'classlist.js'; // Run `npm install --save classlist.js`.
44 /** IE10 and IE11 requires the following to support `@angular/animation`. */
45 import 'web-animations-js'; // Run `npm install --save web-animations-js`.
48 /** Evergreen browsers require these. **/
49 import 'core-js/es6/reflect';
50 import 'core-js/es7/reflect';
53 /** ALL Firefox browsers require the following to support `@angular/animation`. **/
54 // import 'web-animations-js'; // Run `npm install --save web-animations-js`.
57 /***************************************************************************************************
58 * Zone JS is required by Angular itself.
60 import 'zone.js/dist/zone'; // Included with Angular CLI.
63 /***************************************************************************************************
68 * Date, currency, decimal and percent pipes.
69 * Needed for: All but Chrome, Firefox, Edge, IE11 and Safari 10
71 import 'intl'; // Run `npm install --save intl`.
72 import 'intl/locale-data/jsonp/en';
73 import 'core-js/es7/array';
75 if (typeof SVGElement.prototype.contains === 'undefined') {
76 SVGElement.prototype.contains = HTMLDivElement.prototype.contains;