1- import nodeResolve from " rollup-plugin-node-resolve" ;
2- import babel from " rollup-plugin-babel" ;
3- import commonjs from " rollup-plugin-commonjs" ;
4- import replace from " rollup-plugin-replace" ;
5- import { sizeSnapshot } from " rollup-plugin-size-snapshot" ;
6- import { terser } from " rollup-plugin-terser" ;
1+ import nodeResolve from ' rollup-plugin-node-resolve' ;
2+ import babel from ' rollup-plugin-babel' ;
3+ import commonjs from ' rollup-plugin-commonjs' ;
4+ import replace from ' rollup-plugin-replace' ;
5+ import { sizeSnapshot } from ' rollup-plugin-size-snapshot' ;
6+ import { terser } from ' rollup-plugin-terser' ;
77
8- const input = " ./src/umd.js" ;
9- const name = " ReactTransitionGroup" ;
8+ const input = ' ./src/umd.js' ;
9+ const name = ' ReactTransitionGroup' ;
1010const globals = {
11- react : " React" ,
12- " react-dom" : " ReactDOM"
11+ react : ' React' ,
12+ ' react-dom' : ' ReactDOM'
1313} ;
1414
1515const babelOptions = {
@@ -20,16 +20,16 @@ const babelOptions = {
2020const commonjsOptions = {
2121 include : / n o d e _ m o d u l e s / ,
2222 namedExports : {
23- " prop-types" : [ " object" , " oneOfType" , " element" , " bool" , " func" ]
23+ ' prop-types' : [ ' object' , ' oneOfType' , ' element' , ' bool' , ' func' ]
2424 }
2525} ;
2626
2727export default [
2828 {
2929 input,
3030 output : {
31- file : " ./lib/dist/react-transition-group.js" ,
32- format : " umd" ,
31+ file : ' ./lib/dist/react-transition-group.js' ,
32+ format : ' umd' ,
3333 name,
3434 globals
3535 } ,
@@ -38,16 +38,16 @@ export default [
3838 nodeResolve ( ) ,
3939 babel ( babelOptions ) ,
4040 commonjs ( commonjsOptions ) ,
41- replace ( { " process.env.NODE_ENV" : JSON . stringify ( " development" ) } ) ,
41+ replace ( { ' process.env.NODE_ENV' : JSON . stringify ( ' development' ) } ) ,
4242 sizeSnapshot ( )
4343 ]
4444 } ,
4545
4646 {
4747 input,
4848 output : {
49- file : " ./lib/dist/react-transition-group.min.js" ,
50- format : " umd" ,
49+ file : ' ./lib/dist/react-transition-group.min.js' ,
50+ format : ' umd' ,
5151 name,
5252 globals
5353 } ,
@@ -56,7 +56,7 @@ export default [
5656 nodeResolve ( ) ,
5757 babel ( babelOptions ) ,
5858 commonjs ( commonjsOptions ) ,
59- replace ( { " process.env.NODE_ENV" : JSON . stringify ( " production" ) } ) ,
59+ replace ( { ' process.env.NODE_ENV' : JSON . stringify ( ' production' ) } ) ,
6060 sizeSnapshot ( ) ,
6161 terser ( )
6262 ]
0 commit comments