File tree Expand file tree Collapse file tree 5 files changed +40
-60
lines changed Expand file tree Collapse file tree 5 files changed +40
-60
lines changed Original file line number Diff line number Diff line change 7
7
}
8
8
],
9
9
" stage-0"
10
- ],
11
- "plugins" : [
12
- " external-helpers"
13
10
]
14
11
}
Original file line number Diff line number Diff line change
1
+ import commonjs from 'rollup-plugin-commonjs'
2
+ import resolve from 'rollup-plugin-node-resolve'
3
+ import babel from 'rollup-plugin-babel'
4
+
5
+ export default {
6
+ entry : 'src/index.js' ,
7
+ exports : 'named' ,
8
+ moduleName : 'vue-apollo' ,
9
+ plugins : [
10
+ resolve ( {
11
+ jsnext : true ,
12
+ main : true ,
13
+ browser : true ,
14
+ } ) ,
15
+ commonjs ( ) ,
16
+ babel ( {
17
+ exclude : 'node_modules/**' ,
18
+ plugins : [
19
+ 'external-helpers' ,
20
+ ] ,
21
+ } ) ,
22
+ ] ,
23
+ }
Original file line number Diff line number Diff line change 1
- import commonjs from 'rollup-plugin-commonjs'
2
- import resolve from 'rollup-plugin-node-resolve'
3
- import babel from 'rollup-plugin-babel'
1
+ import base from './rollup.config.base'
4
2
import uglify from 'rollup-plugin-uglify'
5
3
import { minify } from 'uglify-js-harmony'
6
4
7
- export default {
8
- entry : 'src/index.js' ,
5
+ const config = Object . assign ( { } , base , {
9
6
dest : 'dist/vue-apollo.min.js' ,
10
7
format : 'iife' ,
11
- exports : 'named' ,
12
8
moduleName : 'VueApollo' ,
13
- plugins : [
14
- resolve ( {
15
- jsnext : true ,
16
- main : true ,
17
- browser : true ,
18
- } ) ,
19
- commonjs ( ) ,
20
- babel ( {
21
- exclude : 'node_modules/**' ,
22
- } ) ,
23
- uglify ( { } , minify ) ,
24
- ] ,
25
- }
9
+ } )
10
+
11
+ config . plugins . push ( uglify ( { } , minify ) )
12
+
13
+ export default config
Original file line number Diff line number Diff line change 1
- import commonjs from 'rollup-plugin-commonjs'
2
- import resolve from 'rollup-plugin-node-resolve'
3
- import babel from 'rollup-plugin-babel'
1
+ import base from './rollup.config.base'
4
2
5
- export default {
6
- entry : 'src/index.js' ,
3
+ const config = Object . assign ( { } , base , {
7
4
dest : 'dist/vue-apollo.esm.js' ,
8
5
format : 'es' ,
9
- exports : 'named' ,
10
- moduleName : 'vue-apollo' ,
11
- plugins : [
12
- resolve ( {
13
- jsnext : true ,
14
- main : true ,
15
- browser : true ,
16
- } ) ,
17
- commonjs ( ) ,
18
- babel ( {
19
- exclude : 'node_modules/**' ,
20
- } ) ,
21
- ] ,
22
- }
6
+ } )
7
+
8
+ export default config
Original file line number Diff line number Diff line change 1
- import commonjs from 'rollup-plugin-commonjs'
2
- import resolve from 'rollup-plugin-node-resolve'
3
- import babel from 'rollup-plugin-babel'
1
+ import base from './rollup.config.base'
4
2
5
- export default {
6
- entry : 'src/index.js' ,
3
+ const config = Object . assign ( { } , base , {
7
4
dest : 'dist/vue-apollo.umd.js' ,
8
5
format : 'umd' ,
9
- exports : 'named' ,
10
- moduleName : 'vue-apollo' ,
11
- plugins : [
12
- resolve ( {
13
- jsnext : true ,
14
- main : true ,
15
- browser : true ,
16
- } ) ,
17
- commonjs ( ) ,
18
- babel ( {
19
- exclude : 'node_modules/**' ,
20
- } ) ,
21
- ] ,
22
- }
6
+ } )
7
+
8
+ export default config
You can’t perform that action at this time.
0 commit comments