Skip to content

Commit 09e9598

Browse files
aitboudadchristopherthielen
authored andcommitted
Add tslib
1 parent d887bcf commit 09e9598

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@
4848
"typings": "lib/index.d.ts",
4949
"dependencies": {
5050
"@uirouter/core": "=5.0.1",
51-
"@uirouter/rx": "=0.4.1"
51+
"@uirouter/rx": "=0.4.1",
52+
"tslib": "^1.7.1"
5253
},
5354
"peerDependencies": {
5455
"@angular/common": "^4.0.0",

rollup.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ const CONFIG = {
6868
external: isExternal,
6969

7070
globals: {
71+
'tslib': 'tslib',
7172
'rxjs/ReplaySubject': 'Rx',
7273

7374
// Copied these from @angular/router rollup config
@@ -94,7 +95,7 @@ const CONFIG = {
9495
'rxjs/operator/last': 'Rx.Observable.prototype',
9596
'rxjs/operator/filter': 'Rx.Observable.prototype',
9697
'rxjs/operator/concatMap': 'Rx.Observable.prototype',
97-
98+
9899
'@uirouter/core': '@uirouter/core',
99100
'ui-router-rx': 'ui-router-rx',
100101
'@angular/core': 'ng.core',

tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
"rootDir": "src",
1212
"outDir": "lib",
1313
"declaration": true,
14-
"sourceMap": true
14+
"sourceMap": true,
15+
"importHelpers": true
1516
},
1617
"angularCompilerOptions": {
1718
"skipTemplateCodegen": true,

tsconfig.typedoc.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
"allowSyntheticDefaultImports": true,
88
"outDir": "build/es5",
99
"declaration": false,
10-
"sourceMap": false
10+
"sourceMap": false,
11+
"importHelpers": true
1112
},
1213
"files": [
1314
"src/index.ts",

0 commit comments

Comments
 (0)