]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Client: use tslib instead of ts-helpers
authorChocobozzz <florian.bigard@gmail.com>
Fri, 10 Feb 2017 09:28:11 +0000 (10:28 +0100)
committerChocobozzz <florian.bigard@gmail.com>
Fri, 10 Feb 2017 09:28:11 +0000 (10:28 +0100)
client/config/webpack.dev.js
client/package.json
client/src/polyfills.browser.ts
client/tsconfig.json
client/tsconfig.webpack.json

index affb20f1904587cc1c1527f18ebe03248783a27a..1e975b26133a1df72c461911c33d1c8e451f6b64 100644 (file)
@@ -88,6 +88,24 @@ module.exports = function (env) {
       webtorrent: 'WebTorrent'
     },
 
+    module: {
+
+      rules: [
+        {
+          test: /\.ts$/,
+          use: [
+            {
+              loader: 'tslint-loader',
+              options: {
+                configFile: 'tslint.json'
+              }
+            }
+          ],
+          exclude: [/\.(spec|e2e)\.ts$/]
+        }
+      ]
+    },
+
     plugins: [
 
       /**
@@ -121,8 +139,7 @@ module.exports = function (env) {
             {
               name: 'zone.js',
               path: 'zone.js/dist/long-stack-trace-zone.js'
-            },
-            'ts-helpers'
+            }
           ],
           vendor: [
             '@angular/platform-browser',
index ad901fc6716bb2d68f4b9f82ba677b23e1964d5f..aa38e076aa54ed545a59db159072214adfda8afd 100644 (file)
@@ -72,7 +72,7 @@
     "source-map-loader": "^0.1.5",
     "string-replace-loader": "^1.0.3",
     "style-loader": "^0.13.1",
-    "ts-helpers": "^1.1.1",
+    "tslib": "^1.5.0",
     "tslint": "~4.3.1",
     "tslint-loader": "^3.3.0",
     "typescript": "~2.1.0",
index 65e211459ba76a3dae8adfc8e350061e0020073a..5119cf4b94fecfaadabaf38a05b1af6b5c1127f5 100644 (file)
@@ -29,9 +29,6 @@ import 'core-js/es6/reflect';
 import 'core-js/es7/reflect';
 import 'zone.js/dist/zone';
 
-// Typescript emit helpers polyfill
-import 'ts-helpers';
-
 if ('production' !== ENV) {
   Error.stackTraceLimit = Infinity;
 
index d70710b82f1455e139d6eb129dc355dec379feeb..115af1f83d21056a51d672bab3e7cf7d81af4b48 100644 (file)
@@ -8,6 +8,7 @@
     "allowSyntheticDefaultImports": true,
     "sourceMap": true,
     "noEmitHelpers": true,
+    "importHelpers": true,
     "strictNullChecks": false,
     "baseUrl": "./src",
     "paths": [
index e1e1bb864d50e98ee70a1ba16572ae70d0b7e956..1d3433bc34a942d7be49dd14e1cb05cebf9c6ceb 100644 (file)
@@ -8,6 +8,7 @@
     "allowSyntheticDefaultImports": true,
     "sourceMap": true,
     "noEmitHelpers": true,
+    "importHelpers": true,
     "strictNullChecks": false,
     "baseUrl": "./src",
     "outDir": "./dist",