File tree 3 files changed +13
-13
lines changed
3 files changed +13
-13
lines changed Original file line number Diff line number Diff line change 1
- import buble from 'rollup- plugin-buble'
1
+ import buble from '@ rollup/ plugin-buble'
2
2
import serve from 'rollup-plugin-serve'
3
- import replace from 'rollup- plugin-replace'
4
- import commonjs from 'rollup- plugin-commonjs'
5
- import resolve from 'rollup- plugin-node-resolve'
6
- import { uglify } from 'rollup-plugin-uglify '
3
+ import replace from '@ rollup/ plugin-replace'
4
+ import commonjs from '@ rollup/ plugin-commonjs'
5
+ import resolve from '@ rollup/ plugin-node-resolve'
6
+ import { terser } from 'rollup-plugin-terser '
7
7
8
8
const plugins = [
9
9
// Use Buble plugin to transpile JSX
@@ -22,8 +22,8 @@ const plugins = [
22
22
]
23
23
24
24
if ( process . env . NODE_ENV === 'production' ) {
25
- // Use Uglify plugin to minify output
26
- plugins . push ( uglify ( ) )
25
+ // Use Terser plugin to minify output
26
+ plugins . push ( terser ( ) )
27
27
} else {
28
28
plugins . push ( serve ( { open : true , contentBase : 'example' , port : 8080 } ) )
29
29
}
Original file line number Diff line number Diff line change 44
44
"react-dom" : " ^16.5.0"
45
45
},
46
46
"devDependencies" : {
47
+ "@rollup/plugin-buble" : " ^0.21.0" ,
48
+ "@rollup/plugin-commonjs" : " ^11.0.2" ,
49
+ "@rollup/plugin-node-resolve" : " ^7.1.0" ,
50
+ "@rollup/plugin-replace" : " ^2.3.0" ,
47
51
"coveralls" : " ^3.0.0" ,
48
52
"jasmine" : " ^3.5.0" ,
49
53
"jsdom" : " ^16.1.0" ,
52
56
"react" : " ^16.10.0" ,
53
57
"react-dom" : " ^16.10.0" ,
54
58
"rollup" : " ^1.30.0" ,
55
- "rollup-plugin-buble" : " ^0.19.6" ,
56
- "rollup-plugin-commonjs" : " ^10.1.0" ,
57
- "rollup-plugin-node-resolve" : " ^5.2.0" ,
58
- "rollup-plugin-replace" : " ^2.1.0" ,
59
59
"rollup-plugin-serve" : " ^1.0.0" ,
60
- "rollup-plugin-uglify " : " ^6.0 .0" ,
60
+ "rollup-plugin-terser " : " ^5.2 .0" ,
61
61
"sinon" : " ^8.1.0" ,
62
62
"standard" : " ^14.3.0"
63
63
},
Original file line number Diff line number Diff line change 1
- import buble from 'rollup- plugin-buble'
1
+ import buble from '@ rollup/ plugin-buble'
2
2
import pkg from './package.json'
3
3
4
4
const input = 'lib/ReactTags.js'
You can’t perform that action at this time.
0 commit comments