File tree Expand file tree Collapse file tree 1 file changed +11
-35
lines changed Expand file tree Collapse file tree 1 file changed +11
-35
lines changed Original file line number Diff line number Diff line change 1
- import resolve from 'rollup-plugin-node-resolve'
2
- import replace from 'rollup-plugin-replace'
3
- import VueLoader from 'rollup-plugin-vue'
4
- import butternut from 'rollup-plugin-butternut'
5
1
import buble from 'rollup-plugin-buble'
2
+ import commonjs from 'rollup-plugin-commonjs'
3
+ import { terser } from 'rollup-plugin-terser'
4
+ import vue from 'rollup-plugin-vue'
6
5
7
6
export default {
8
7
input : 'src/index.js' ,
9
8
plugins : [
10
- VueLoader ( {
9
+ commonjs ( ) ,
10
+ vue ( {
11
11
compileTemplate : true
12
12
} ) ,
13
13
buble ( {
14
- objectAssign : 'Object.assign' ,
15
- jsx : 'h'
14
+ objectAssign : 'Object.assign'
16
15
} ) ,
17
- butternut ( ) ,
18
- resolve ( {
19
- jsnext : true ,
20
- main : true ,
21
- browser : true
22
- } ) ,
23
- replace ( {
24
- 'process.env.NODE_ENV' : JSON . stringify ( 'production' )
25
- } )
16
+ terser ( )
26
17
] ,
27
- output : [
28
- {
29
- file : 'dist/vue-announcer.cjs.js' ,
30
- format : 'cjs'
31
- } ,
32
- {
33
- file : 'dist/vue-announcer.es.js' ,
34
- format : 'es'
35
- } ,
36
- {
37
- file : 'dist/vue-announcer.amd.js' ,
38
- format : 'amd'
39
- } ,
40
- {
41
- name : 'VueAnnouncer' ,
42
- file : 'dist/vue-announcer.js' ,
43
- format : 'umd'
44
- }
45
- ]
18
+ output : {
19
+ name : 'VueAnnouncer' ,
20
+ exports : 'named'
21
+ }
46
22
}
You can’t perform that action at this time.
0 commit comments