]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/polyfills.ts
Client: support the new make friends method
[github/Chocobozzz/PeerTube.git] / client / src / polyfills.ts
index 3395eed762d66e348bc8215e4ae602d19782d125..740a563bb96bf5b4197ce5cfad0d29ca4c38a21c 100644 (file)
@@ -1,10 +1,9 @@
 // Polyfills
 // (these modules are what are in 'angular2/bundles/angular2-polyfills' so don't use that here)
 
-// import 'ie-shim'; // Internet Explorer
-// import 'es6-shim';
-// import 'es6-promise';
-// import 'es7-reflect-metadata';
+require('intl');
+require('intl/locale-data/jsonp/en.js');
+import 'ie-shim'; // Internet Explorer
 
 // Prefer CoreJS over the polyfills above
 import 'core-js/es6';
@@ -14,15 +13,8 @@ require('zone.js/dist/zone');
 // Typescript emit helpers polyfill
 import 'ts-helpers';
 
-if ('production' === ENV) {
-  // Production
-
-
-} else {
-  // Development
-
+if ('production' !== ENV) {
   Error.stackTraceLimit = Infinity;
 
   require('zone.js/dist/long-stack-trace-zone');
-
 }