File tree Expand file tree Collapse file tree 2 files changed +29
-70
lines changed Expand file tree Collapse file tree 2 files changed +29
-70
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 serve from 'rollup-plugin-serve'
5
- import livereload from 'rollup-plugin-livereload'
6
- import buble from 'rollup-plugin-buble'
7
- import eslint from 'rollup-plugin-eslint'
1
+ import buble from '@rollup/plugin-buble'
2
+ import resolve from '@rollup/plugin-node-resolve'
8
3
import chokidar from 'chokidar'
4
+ import { eslint } from 'rollup-plugin-eslint'
5
+ import vue from 'rollup-plugin-vue'
9
6
10
7
export default {
11
8
input : 'src/index.js' ,
@@ -14,38 +11,22 @@ export default {
14
11
include : [ 'src/**' ]
15
12
} ,
16
13
plugins : [
14
+ resolve ( ) ,
17
15
eslint ( {
18
16
include : './src/**'
19
17
} ) ,
20
- VueLoader ( {
18
+ vue ( {
19
+ css : true ,
21
20
compileTemplate : true
22
21
} ) ,
23
- buble ( {
24
- objectAssign : 'Object.assign' ,
25
- jsx : 'h'
26
- } ) ,
27
- resolve ( {
28
- jsnext : true ,
29
- main : true ,
30
- browser : true
31
- } ) ,
32
- replace ( {
33
- 'process.env.NODE_ENV' : JSON . stringify ( 'development' )
34
- } ) ,
35
- serve ( {
36
- verbose : true ,
37
- contentBase : 'demo' ,
38
- historyApiFallback : true
39
- } ) ,
40
- livereload ( {
41
- watch : 'demo'
42
- } )
22
+ buble ( )
43
23
] ,
44
24
output : [
45
25
{
46
26
name : 'VueSkipTo' ,
47
27
file : 'demo/vue-skip-to.js' ,
48
- format : 'umd'
28
+ format : 'umd' ,
29
+ exports : 'named'
49
30
}
50
31
]
51
32
}
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
- import buble from 'rollup-plugin-buble'
6
- import copy from 'rollup-plugin-copy'
1
+ import buble from '@rollup/plugin-buble'
2
+ import commonjs from '@rollup/plugin-commonjs'
3
+ import replace from '@rollup/plugin-replace'
4
+ import { terser } from 'rollup-plugin-terser'
5
+ import vue from 'rollup-plugin-vue'
7
6
8
7
export default {
9
8
input : 'src/index.js' ,
10
9
plugins : [
11
- VueLoader ( {
12
- compileTemplate : true
13
- } ) ,
14
- buble ( {
15
- objectAssign : 'Object.assign' ,
16
- jsx : 'h'
17
- } ) ,
18
- butternut ( ) ,
19
- resolve ( {
20
- jsnext : true ,
21
- main : true ,
22
- browser : true
23
- } ) ,
10
+ commonjs ( ) ,
24
11
replace ( {
25
12
'process.env.NODE_ENV' : JSON . stringify ( 'production' )
26
13
} ) ,
27
- copy ( {
28
- 'src/skip-to.vue' : 'dist/vue-skip-to.vue'
29
- } )
14
+ vue ( {
15
+ css : true ,
16
+ compileTemplate : true ,
17
+ template : {
18
+ isProduction : true
19
+ }
20
+ } ) ,
21
+ buble ( ) ,
22
+ terser ( )
30
23
] ,
31
- output : [
32
- {
33
- file : 'dist/vue-skip-to.cjs.js' ,
34
- format : 'cjs'
35
- } ,
36
- {
37
- file : 'dist/vue-skip-to.es.js' ,
38
- format : 'es'
39
- } ,
40
- {
41
- file : 'dist/vue-skip-to.amd.js' ,
42
- format : 'amd'
43
- } ,
44
- {
45
- name : 'VueSkipTo' ,
46
- file : 'dist/vue-skip-to.js' ,
47
- format : 'umd'
48
- }
49
- ]
24
+ output : {
25
+ name : 'VueSkipTo' ,
26
+ exports : 'named'
27
+ }
50
28
}
You can’t perform that action at this time.
0 commit comments