Change the buiding tool to angular-cli
[holmes/rule-management.git] / rulemgt-frontend / src / polyfills.ts
1 /* Copyright 2017 ZTE Corporation.
2  *
3  *Licensed under the Apache License, Version 2.0 (the "License");
4  *you may not use this file except in compliance with the License.
5  *You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15
16  /**
17  * This file includes polyfills needed by Angular and is loaded before the app.
18  * You can add your own extra polyfills to this file.
19  *
20  * This file is divided into 2 sections:
21  *   1. Browser polyfills. These are applied before loading ZoneJS and are sorted by browsers.
22  *   2. Application imports. Files imported after ZoneJS that should be loaded before your main
23  *      file.
24  *
25  * The current setup is for so-called "evergreen" browsers; the last versions of browsers that
26  * automatically update themselves. This includes Safari >= 10, Chrome >= 55 (including Opera),
27  * Edge >= 13 on the desktop, and iOS 10 and Chrome on mobile.
28  *
29  * Learn more in https://angular.io/docs/ts/latest/guide/browser-support.html
30  */
31
32 /***************************************************************************************************
33  * BROWSER POLYFILLS
34  */
35
36 /** IE9, IE10 and IE11 requires all of the following polyfills. **/
37 // import 'core-js/es6/symbol';
38 // import 'core-js/es6/object';
39 // import 'core-js/es6/function';
40 // import 'core-js/es6/parse-int';
41 // import 'core-js/es6/parse-float';
42 // import 'core-js/es6/number';
43 // import 'core-js/es6/math';
44 // import 'core-js/es6/string';
45 // import 'core-js/es6/date';
46 // import 'core-js/es6/array';
47 // import 'core-js/es6/regexp';
48 // import 'core-js/es6/map';
49 // import 'core-js/es6/weak-map';
50 // import 'core-js/es6/set';
51
52 /** IE10 and IE11 requires the following for NgClass support on SVG elements */
53 // import 'classlist.js';  // Run `npm install --save classlist.js`.
54
55 /** Evergreen browsers require these. **/
56 import 'core-js/es6/reflect';
57 import 'core-js/es7/reflect';
58
59
60 /**
61  * Required to support Web Animations `@angular/platform-browser/animations`.
62  * Needed for: All but Chrome, Firefox and Opera. http://caniuse.com/#feat=web-animation
63  **/
64 // import 'web-animations-js';  // Run `npm install --save web-animations-js`.
65
66
67
68 /***************************************************************************************************
69  * Zone JS is required by Angular itself.
70  */
71 import 'zone.js/dist/zone';  // Included with Angular CLI.
72
73
74
75 /***************************************************************************************************
76  * APPLICATION IMPORTS
77  */
78
79 /**
80  * Date, currency, decimal and percent pipes.
81  * Needed for: All but Chrome, Firefox, Edge, IE11 and Safari 10
82  */
83 // import 'intl';  // Run `npm install --save intl`.
84 /**
85  * Need to import at least one locale-data with intl.
86  */
87 // import 'intl/locale-data/jsonp/en';