aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/polyfills.browser.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/polyfills.browser.ts')
-rw-r--r--client/src/polyfills.browser.ts39
1 files changed, 39 insertions, 0 deletions
diff --git a/client/src/polyfills.browser.ts b/client/src/polyfills.browser.ts
new file mode 100644
index 000000000..65e211459
--- /dev/null
+++ b/client/src/polyfills.browser.ts
@@ -0,0 +1,39 @@
1// Polyfills
2// (these modules are what are in 'angular2/bundles/angular2-polyfills' so don't use that here)
3
4require('intl');
5require('intl/locale-data/jsonp/en.js');
6import 'ie-shim'; // Internet Explorer
7
8// Prefer CoreJS over the polyfills above
9import 'core-js/es6/symbol';
10import 'core-js/es6/object';
11import 'core-js/es6/function';
12import 'core-js/es6/parse-int';
13import 'core-js/es6/parse-float';
14import 'core-js/es6/number';
15import 'core-js/es6/math';
16import 'core-js/es6/string';
17import 'core-js/es6/date';
18import 'core-js/es6/array';
19import 'core-js/es6/regexp';
20import 'core-js/es6/map';
21import 'core-js/es6/set';
22import 'core-js/es6/weak-map';
23import 'core-js/es6/weak-set';
24import 'core-js/es6/typed';
25import 'core-js/es6/reflect';
26// see issue https://github.com/AngularClass/angular2-webpack-starter/issues/709
27// import 'core-js/es6/promise';
28
29import 'core-js/es7/reflect';
30import 'zone.js/dist/zone';
31
32// Typescript emit helpers polyfill
33import 'ts-helpers';
34
35if ('production' !== ENV) {
36 Error.stackTraceLimit = Infinity;
37
38 require('zone.js/dist/long-stack-trace-zone');
39}