Client: use tslib instead of ts-helpers
This commit is contained in:
parent
01a07456e4
commit
a17bc2c34e
|
@ -88,6 +88,24 @@ module.exports = function (env) {
|
||||||
webtorrent: 'WebTorrent'
|
webtorrent: 'WebTorrent'
|
||||||
},
|
},
|
||||||
|
|
||||||
|
module: {
|
||||||
|
|
||||||
|
rules: [
|
||||||
|
{
|
||||||
|
test: /\.ts$/,
|
||||||
|
use: [
|
||||||
|
{
|
||||||
|
loader: 'tslint-loader',
|
||||||
|
options: {
|
||||||
|
configFile: 'tslint.json'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
exclude: [/\.(spec|e2e)\.ts$/]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
|
||||||
plugins: [
|
plugins: [
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -121,8 +139,7 @@ module.exports = function (env) {
|
||||||
{
|
{
|
||||||
name: 'zone.js',
|
name: 'zone.js',
|
||||||
path: 'zone.js/dist/long-stack-trace-zone.js'
|
path: 'zone.js/dist/long-stack-trace-zone.js'
|
||||||
},
|
}
|
||||||
'ts-helpers'
|
|
||||||
],
|
],
|
||||||
vendor: [
|
vendor: [
|
||||||
'@angular/platform-browser',
|
'@angular/platform-browser',
|
||||||
|
|
|
@ -72,7 +72,7 @@
|
||||||
"source-map-loader": "^0.1.5",
|
"source-map-loader": "^0.1.5",
|
||||||
"string-replace-loader": "^1.0.3",
|
"string-replace-loader": "^1.0.3",
|
||||||
"style-loader": "^0.13.1",
|
"style-loader": "^0.13.1",
|
||||||
"ts-helpers": "^1.1.1",
|
"tslib": "^1.5.0",
|
||||||
"tslint": "~4.3.1",
|
"tslint": "~4.3.1",
|
||||||
"tslint-loader": "^3.3.0",
|
"tslint-loader": "^3.3.0",
|
||||||
"typescript": "~2.1.0",
|
"typescript": "~2.1.0",
|
||||||
|
|
|
@ -29,9 +29,6 @@ import 'core-js/es6/reflect';
|
||||||
import 'core-js/es7/reflect';
|
import 'core-js/es7/reflect';
|
||||||
import 'zone.js/dist/zone';
|
import 'zone.js/dist/zone';
|
||||||
|
|
||||||
// Typescript emit helpers polyfill
|
|
||||||
import 'ts-helpers';
|
|
||||||
|
|
||||||
if ('production' !== ENV) {
|
if ('production' !== ENV) {
|
||||||
Error.stackTraceLimit = Infinity;
|
Error.stackTraceLimit = Infinity;
|
||||||
|
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
"allowSyntheticDefaultImports": true,
|
"allowSyntheticDefaultImports": true,
|
||||||
"sourceMap": true,
|
"sourceMap": true,
|
||||||
"noEmitHelpers": true,
|
"noEmitHelpers": true,
|
||||||
|
"importHelpers": true,
|
||||||
"strictNullChecks": false,
|
"strictNullChecks": false,
|
||||||
"baseUrl": "./src",
|
"baseUrl": "./src",
|
||||||
"paths": [
|
"paths": [
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
"allowSyntheticDefaultImports": true,
|
"allowSyntheticDefaultImports": true,
|
||||||
"sourceMap": true,
|
"sourceMap": true,
|
||||||
"noEmitHelpers": true,
|
"noEmitHelpers": true,
|
||||||
|
"importHelpers": true,
|
||||||
"strictNullChecks": false,
|
"strictNullChecks": false,
|
||||||
"baseUrl": "./src",
|
"baseUrl": "./src",
|
||||||
"outDir": "./dist",
|
"outDir": "./dist",
|
||||||
|
|
Loading…
Reference in New Issue