]>
Commit | Line | Data |
---|---|---|
4a6995be C |
1 | // Polyfills |
2 | // (these modules are what are in 'angular2/bundles/angular2-polyfills' so don't use that here) | |
3 | ||
a64668c0 C |
4 | require('intl'); |
5 | require('intl/locale-data/jsonp/en.js'); | |
6 | import 'ie-shim'; // Internet Explorer | |
4a6995be C |
7 | |
8 | // Prefer CoreJS over the polyfills above | |
ab32b0fc C |
9 | import 'core-js/es6/symbol'; |
10 | import 'core-js/es6/object'; | |
11 | import 'core-js/es6/function'; | |
12 | import 'core-js/es6/parse-int'; | |
13 | import 'core-js/es6/parse-float'; | |
14 | import 'core-js/es6/number'; | |
15 | import 'core-js/es6/math'; | |
16 | import 'core-js/es6/string'; | |
17 | import 'core-js/es6/date'; | |
18 | import 'core-js/es6/array'; | |
19 | import 'core-js/es6/regexp'; | |
20 | import 'core-js/es6/map'; | |
21 | import 'core-js/es6/set'; | |
22 | import 'core-js/es6/weak-map'; | |
23 | import 'core-js/es6/weak-set'; | |
24 | import 'core-js/es6/typed'; | |
25 | import 'core-js/es6/reflect'; | |
26 | // see issue https://github.com/AngularClass/angular2-webpack-starter/issues/709 | |
27 | // import 'core-js/es6/promise'; | |
28 | ||
4a6995be | 29 | import 'core-js/es7/reflect'; |
ab32b0fc | 30 | import 'zone.js/dist/zone'; |
4a6995be | 31 | |
b20b5fed | 32 | if ('production' !== ENV) { |
4a6995be C |
33 | Error.stackTraceLimit = Infinity; |
34 | ||
35 | require('zone.js/dist/long-stack-trace-zone'); | |
4a6995be | 36 | } |