]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/polyfills.ts
3395eed762d66e348bc8215e4ae602d19782d125
[github/Chocobozzz/PeerTube.git] / client / src / polyfills.ts
1 // Polyfills
2 // (these modules are what are in 'angular2/bundles/angular2-polyfills' so don't use that here)
3
4 // import 'ie-shim'; // Internet Explorer
5 // import 'es6-shim';
6 // import 'es6-promise';
7 // import 'es7-reflect-metadata';
8
9 // Prefer CoreJS over the polyfills above
10 import 'core-js/es6';
11 import 'core-js/es7/reflect';
12 require('zone.js/dist/zone');
13
14 // Typescript emit helpers polyfill
15 import 'ts-helpers';
16
17 if ('production' === ENV) {
18 // Production
19
20
21 } else {
22 // Development
23
24 Error.stackTraceLimit = Infinity;
25
26 require('zone.js/dist/long-stack-trace-zone');
27
28 }