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' ;
7
7
8
- const input = " ./src/umd.js" ;
9
- const name = " ReactTransitionGroup" ;
8
+ const input = ' ./src/umd.js' ;
9
+ const name = ' ReactTransitionGroup' ;
10
10
const globals = {
11
- react : " React" ,
12
- " react-dom" : " ReactDOM"
11
+ react : ' React' ,
12
+ ' react-dom' : ' ReactDOM'
13
13
} ;
14
14
15
15
const babelOptions = {
@@ -20,16 +20,16 @@ const babelOptions = {
20
20
const commonjsOptions = {
21
21
include : / n o d e _ m o d u l e s / ,
22
22
namedExports : {
23
- " prop-types" : [ " object" , " oneOfType" , " element" , " bool" , " func" ]
23
+ ' prop-types' : [ ' object' , ' oneOfType' , ' element' , ' bool' , ' func' ]
24
24
}
25
25
} ;
26
26
27
27
export default [
28
28
{
29
29
input,
30
30
output : {
31
- file : " ./lib/dist/react-transition-group.js" ,
32
- format : " umd" ,
31
+ file : ' ./lib/dist/react-transition-group.js' ,
32
+ format : ' umd' ,
33
33
name,
34
34
globals
35
35
} ,
@@ -38,16 +38,16 @@ export default [
38
38
nodeResolve ( ) ,
39
39
babel ( babelOptions ) ,
40
40
commonjs ( commonjsOptions ) ,
41
- replace ( { " process.env.NODE_ENV" : JSON . stringify ( " development" ) } ) ,
41
+ replace ( { ' process.env.NODE_ENV' : JSON . stringify ( ' development' ) } ) ,
42
42
sizeSnapshot ( )
43
43
]
44
44
} ,
45
45
46
46
{
47
47
input,
48
48
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' ,
51
51
name,
52
52
globals
53
53
} ,
@@ -56,7 +56,7 @@ export default [
56
56
nodeResolve ( ) ,
57
57
babel ( babelOptions ) ,
58
58
commonjs ( commonjsOptions ) ,
59
- replace ( { " process.env.NODE_ENV" : JSON . stringify ( " production" ) } ) ,
59
+ replace ( { ' process.env.NODE_ENV' : JSON . stringify ( ' production' ) } ) ,
60
60
sizeSnapshot ( ) ,
61
61
terser ( )
62
62
]
0 commit comments