diff options
-rw-r--r-- | client/config/webpack.dev.js | 21 | ||||
-rw-r--r-- | client/package.json | 2 | ||||
-rw-r--r-- | client/src/polyfills.browser.ts | 3 | ||||
-rw-r--r-- | client/tsconfig.json | 1 | ||||
-rw-r--r-- | client/tsconfig.webpack.json | 1 |
5 files changed, 22 insertions, 6 deletions
diff --git a/client/config/webpack.dev.js b/client/config/webpack.dev.js index affb20f19..1e975b261 100644 --- a/client/config/webpack.dev.js +++ b/client/config/webpack.dev.js | |||
@@ -88,6 +88,24 @@ module.exports = function (env) { | |||
88 | webtorrent: 'WebTorrent' | 88 | webtorrent: 'WebTorrent' |
89 | }, | 89 | }, |
90 | 90 | ||
91 | module: { | ||
92 | |||
93 | rules: [ | ||
94 | { | ||
95 | test: /\.ts$/, | ||
96 | use: [ | ||
97 | { | ||
98 | loader: 'tslint-loader', | ||
99 | options: { | ||
100 | configFile: 'tslint.json' | ||
101 | } | ||
102 | } | ||
103 | ], | ||
104 | exclude: [/\.(spec|e2e)\.ts$/] | ||
105 | } | ||
106 | ] | ||
107 | }, | ||
108 | |||
91 | plugins: [ | 109 | plugins: [ |
92 | 110 | ||
93 | /** | 111 | /** |
@@ -121,8 +139,7 @@ module.exports = function (env) { | |||
121 | { | 139 | { |
122 | name: 'zone.js', | 140 | name: 'zone.js', |
123 | path: 'zone.js/dist/long-stack-trace-zone.js' | 141 | path: 'zone.js/dist/long-stack-trace-zone.js' |
124 | }, | 142 | } |
125 | 'ts-helpers' | ||
126 | ], | 143 | ], |
127 | vendor: [ | 144 | vendor: [ |
128 | '@angular/platform-browser', | 145 | '@angular/platform-browser', |
diff --git a/client/package.json b/client/package.json index ad901fc67..aa38e076a 100644 --- a/client/package.json +++ b/client/package.json | |||
@@ -72,7 +72,7 @@ | |||
72 | "source-map-loader": "^0.1.5", | 72 | "source-map-loader": "^0.1.5", |
73 | "string-replace-loader": "^1.0.3", | 73 | "string-replace-loader": "^1.0.3", |
74 | "style-loader": "^0.13.1", | 74 | "style-loader": "^0.13.1", |
75 | "ts-helpers": "^1.1.1", | 75 | "tslib": "^1.5.0", |
76 | "tslint": "~4.3.1", | 76 | "tslint": "~4.3.1", |
77 | "tslint-loader": "^3.3.0", | 77 | "tslint-loader": "^3.3.0", |
78 | "typescript": "~2.1.0", | 78 | "typescript": "~2.1.0", |
diff --git a/client/src/polyfills.browser.ts b/client/src/polyfills.browser.ts index 65e211459..5119cf4b9 100644 --- a/client/src/polyfills.browser.ts +++ b/client/src/polyfills.browser.ts | |||
@@ -29,9 +29,6 @@ import 'core-js/es6/reflect'; | |||
29 | import 'core-js/es7/reflect'; | 29 | import 'core-js/es7/reflect'; |
30 | import 'zone.js/dist/zone'; | 30 | import 'zone.js/dist/zone'; |
31 | 31 | ||
32 | // Typescript emit helpers polyfill | ||
33 | import 'ts-helpers'; | ||
34 | |||
35 | if ('production' !== ENV) { | 32 | if ('production' !== ENV) { |
36 | Error.stackTraceLimit = Infinity; | 33 | Error.stackTraceLimit = Infinity; |
37 | 34 | ||
diff --git a/client/tsconfig.json b/client/tsconfig.json index d70710b82..115af1f83 100644 --- a/client/tsconfig.json +++ b/client/tsconfig.json | |||
@@ -8,6 +8,7 @@ | |||
8 | "allowSyntheticDefaultImports": true, | 8 | "allowSyntheticDefaultImports": true, |
9 | "sourceMap": true, | 9 | "sourceMap": true, |
10 | "noEmitHelpers": true, | 10 | "noEmitHelpers": true, |
11 | "importHelpers": true, | ||
11 | "strictNullChecks": false, | 12 | "strictNullChecks": false, |
12 | "baseUrl": "./src", | 13 | "baseUrl": "./src", |
13 | "paths": [ | 14 | "paths": [ |
diff --git a/client/tsconfig.webpack.json b/client/tsconfig.webpack.json index e1e1bb864..1d3433bc3 100644 --- a/client/tsconfig.webpack.json +++ b/client/tsconfig.webpack.json | |||
@@ -8,6 +8,7 @@ | |||
8 | "allowSyntheticDefaultImports": true, | 8 | "allowSyntheticDefaultImports": true, |
9 | "sourceMap": true, | 9 | "sourceMap": true, |
10 | "noEmitHelpers": true, | 10 | "noEmitHelpers": true, |
11 | "importHelpers": true, | ||
11 | "strictNullChecks": false, | 12 | "strictNullChecks": false, |
12 | "baseUrl": "./src", | 13 | "baseUrl": "./src", |
13 | "outDir": "./dist", | 14 | "outDir": "./dist", |