aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/polyfills.ts
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2016-06-03 22:08:03 +0200
committerChocobozzz <florian.bigard@gmail.com>2016-06-03 22:08:03 +0200
commit4a6995be18b15de1834a39c8921a0e4109671bb6 (patch)
treeb659661cea33687fcc6bd8fc2251cb7a15ab9f9d /client/src/polyfills.ts
parent468892541175f9662f8b1b977e819dc1a496f282 (diff)
downloadPeerTube-4a6995be18b15de1834a39c8921a0e4109671bb6.tar.gz
PeerTube-4a6995be18b15de1834a39c8921a0e4109671bb6.tar.zst
PeerTube-4a6995be18b15de1834a39c8921a0e4109671bb6.zip
First draft to use webpack instead of systemjs
Diffstat (limited to 'client/src/polyfills.ts')
-rw-r--r--client/src/polyfills.ts28
1 files changed, 28 insertions, 0 deletions
diff --git a/client/src/polyfills.ts b/client/src/polyfills.ts
new file mode 100644
index 000000000..3395eed76
--- /dev/null
+++ b/client/src/polyfills.ts
@@ -0,0 +1,28 @@
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
17if ('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}