File tree Expand file tree Collapse file tree 1 file changed +0
-25
lines changed Expand file tree Collapse file tree 1 file changed +0
-25
lines changed Original file line number Diff line number Diff line change 1- const rpts2 = require ( 'rollup-plugin-typescript2' ) ;
21const copy = require ( 'rollup-plugin-copy' ) ;
32const postcss = require ( 'rollup-plugin-postcss' ) ;
43const autoprefixer = require ( 'autoprefixer' ) ;
54const cssnano = require ( 'cssnano' ) ;
65
76module . exports = {
87 rollup ( config , options ) {
9- config . plugins = config . plugins . map ( plugin => {
10- if ( plugin && plugin . name === 'rpt2' ) {
11- return rpts2 ( {
12- clean : true ,
13- objectHashIgnoreUnknownHack : true ,
14- tsconfig : options . tsconfig ,
15- tsconfigDefaults : {
16- compilerOptions : {
17- sourceMap : true ,
18- declaration : true ,
19- jsx : 'react' ,
20- } ,
21- } ,
22- tsconfigOverride : {
23- compilerOptions : {
24- target : 'esnext' ,
25- } ,
26- } ,
27- } ) ;
28- }
29-
30- return plugin ;
31- } ) ;
32-
338 config . plugins . push (
349 postcss ( {
3510 plugins : [
You can’t perform that action at this time.
0 commit comments