File tree 2 files changed +36
-37
lines changed
2 files changed +36
-37
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 babel from 'rollup-plugin-babel'
5
- import commonJs from 'rollup-plugin-commonjs'
6
- import eslint from 'rollup-plugin-eslint'
1
+ import buble from '@rollup/plugin-buble'
2
+ import commonJs from '@rollup/plugin-commonjs'
3
+ import resolve from '@rollup/plugin-node-resolve'
7
4
import chokidar from 'chokidar'
5
+ import { eslint } from 'rollup-plugin-eslint'
6
+ import vue from 'rollup-plugin-vue'
8
7
9
8
export default {
10
9
input : 'src/index.js' ,
@@ -13,24 +12,25 @@ export default {
13
12
include : [ 'src/**' ]
14
13
} ,
15
14
plugins : [
15
+ resolve ( ) ,
16
+ commonJs ( ) ,
16
17
eslint ( {
17
18
include : './src/**'
18
19
} ) ,
19
- babel ( {
20
- exclude : './node_modules/**'
20
+ buble ( {
21
+ objectAssign : true
21
22
} ) ,
22
- resolve ( ) ,
23
- commonJs ( ) ,
24
- VueLoader ( ) ,
25
- replace ( {
26
- 'process.env.NODE_ENV' : JSON . stringify ( 'development' )
27
- } )
23
+ vue ( )
28
24
] ,
29
25
output : [
30
26
{
31
27
name : 'VueAxe' ,
32
28
file : 'demo/vue-axe.js' ,
33
- format : 'umd'
29
+ format : 'umd' ,
30
+ exports : 'named' ,
31
+ globals : {
32
+ 'axe-core' : 'axeCore'
33
+ }
34
34
}
35
35
]
36
36
}
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 babel from 'rollup-plugin-babel'
6
- import commonJs from 'rollup-plugin-commonjs'
1
+ import buble from '@rollup/plugin-buble'
2
+ import commonjs from '@rollup/plugin-commonjs'
3
+ import resolve from '@rollup/plugin-node-resolve'
4
+ import replace from '@rollup/plugin-replace'
5
+ import peerDepsExternal from 'rollup-plugin-peer-deps-external'
6
+ import { terser } from 'rollup-plugin-terser'
7
+ import vue from 'rollup-plugin-vue'
7
8
8
9
export default {
9
10
input : 'src/index.js' ,
10
11
external : [ 'axe-core' ] ,
11
12
plugins : [
12
- babel ( {
13
- exclude : './node_modules/**'
14
- } ) ,
15
- butternut ( ) ,
13
+ peerDepsExternal ( ) ,
16
14
resolve ( ) ,
17
- commonJs ( ) ,
18
- VueLoader ( ) ,
15
+ commonjs ( ) ,
19
16
replace ( {
20
17
'process.env.NODE_ENV' : JSON . stringify ( 'production' )
21
- } )
18
+ } ) ,
19
+ vue ( ) ,
20
+ buble ( {
21
+ objectAssign : true
22
+ } ) ,
23
+ terser ( )
22
24
] ,
23
- output : [
24
- {
25
- name : 'VueAxe' ,
26
- file : 'dist/vue-axe.js' ,
27
- format : 'umd' ,
28
- globals : {
29
- 'axe-core' : 'axeCore'
30
- }
25
+ output : {
26
+ name : 'VueAxe' ,
27
+ exports : 'named' ,
28
+ globals : {
29
+ 'axe-core' : 'axeCore'
31
30
}
32
- ]
31
+ }
33
32
}
You can’t perform that action at this time.
0 commit comments