File tree Expand file tree Collapse file tree 3 files changed +56
-0
lines changed Expand file tree Collapse file tree 3 files changed +56
-0
lines changed Original file line number Diff line number Diff line change 87
87
"rollup-plugin-node-resolve" : " ^5.2.0" ,
88
88
"rollup-plugin-replace" : " ^2.2.0" ,
89
89
"rollup-plugin-terser" : " ^5.1.1" ,
90
+ "rollup-plugin-typescript2" : " ^0.22.1" ,
90
91
"rxjs" : " ^6.5.2" ,
91
92
"typescript" : " ^3.5.3" ,
92
93
"typings-tester" : " ^0.3.2"
Original file line number Diff line number Diff line change
1
+ import path from 'path'
1
2
import nodeResolve from 'rollup-plugin-node-resolve'
2
3
import babel from 'rollup-plugin-babel'
3
4
import replace from 'rollup-plugin-replace'
5
+ import typescript from 'rollup-plugin-typescript2'
4
6
import { terser } from 'rollup-plugin-terser'
5
7
6
8
import pkg from './package.json'
@@ -18,6 +20,9 @@ export default [
18
20
nodeResolve ( {
19
21
extensions : [ '.ts' ]
20
22
} ) ,
23
+ typescript ( {
24
+ cacheRoot : path . resolve ( './node_modules/.cache' )
25
+ } ) ,
21
26
babel ( )
22
27
]
23
28
} ,
@@ -34,6 +39,9 @@ export default [
34
39
nodeResolve ( {
35
40
extensions : [ '.ts' ]
36
41
} ) ,
42
+ typescript ( {
43
+ cacheRoot : path . resolve ( './node_modules/.cache' )
44
+ } ) ,
37
45
babel ( )
38
46
]
39
47
} ,
@@ -49,6 +57,9 @@ export default [
49
57
replace ( {
50
58
'process.env.NODE_ENV' : JSON . stringify ( 'production' )
51
59
} ) ,
60
+ typescript ( {
61
+ cacheRoot : path . resolve ( './node_modules/.cache' )
62
+ } ) ,
52
63
babel ( {
53
64
exclude : 'node_modules/**'
54
65
} ) ,
@@ -76,6 +87,9 @@ export default [
76
87
nodeResolve ( {
77
88
extensions : [ '.ts' ]
78
89
} ) ,
90
+ typescript ( {
91
+ cacheRoot : path . resolve ( './node_modules/.cache' )
92
+ } ) ,
79
93
babel ( {
80
94
exclude : 'node_modules/**'
81
95
} ) ,
@@ -98,6 +112,9 @@ export default [
98
112
nodeResolve ( {
99
113
extensions : [ '.ts' ]
100
114
} ) ,
115
+ typescript ( {
116
+ cacheRoot : path . resolve ( './node_modules/.cache' )
117
+ } ) ,
101
118
babel ( {
102
119
exclude : 'node_modules/**'
103
120
} ) ,
You can’t perform that action at this time.
0 commit comments