]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/polyfills.ts
Use webtorrent as external dependency instead of building it with
[github/Chocobozzz/PeerTube.git] / client / src / polyfills.ts
CommitLineData
4a6995be
C
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
10import 'core-js/es6';
11import 'core-js/es7/reflect';
12require('zone.js/dist/zone');
13
14// Typescript emit helpers polyfill
15import 'ts-helpers';
16
b20b5fed 17if ('production' !== ENV) {
4a6995be
C
18 Error.stackTraceLimit = Infinity;
19
20 require('zone.js/dist/long-stack-trace-zone');
4a6995be 21}