File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 1
1
import vue from 'rollup-plugin-vue' ;
2
2
import commonjs from 'rollup-plugin-commonjs' ;
3
+ import { terser } from 'rollup-plugin-terser' ;
3
4
4
5
export default [
5
6
// ESM build to be used with webpack/rollup.
@@ -12,6 +13,7 @@ export default [
12
13
plugins : [
13
14
vue ( ) ,
14
15
commonjs ( ) ,
16
+ terser ( ) ,
15
17
] ,
16
18
} ,
17
19
// UMD build.
@@ -25,6 +27,7 @@ export default [
25
27
plugins : [
26
28
vue ( ) ,
27
29
commonjs ( ) ,
30
+ terser ( ) ,
28
31
] ,
29
32
} ,
30
33
// SSR build.
@@ -37,6 +40,7 @@ export default [
37
40
plugins : [
38
41
vue ( { template : { optimizeSSR : true } } ) ,
39
42
commonjs ( ) ,
43
+ terser ( ) ,
40
44
] ,
41
45
} ,
42
46
// Browser build.
@@ -50,6 +54,7 @@ export default [
50
54
plugins : [
51
55
vue ( ) ,
52
56
commonjs ( ) ,
57
+ terser ( ) ,
53
58
] ,
54
59
} ,
55
60
] ;
You can’t perform that action at this time.
0 commit comments