File tree 3 files changed +7
-1
lines changed
3 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 1
1
const buble = require ( 'rollup-plugin-buble' )
2
+ const replace = require ( 'rollup-plugin-replace' )
2
3
const version = process . env . VERSION || require ( '../package.json' ) . version
3
4
4
5
module . exports = {
5
6
entry : 'src/index.js' ,
6
7
dest : 'dist/vuex.js' ,
7
8
format : 'umd' ,
8
9
moduleName : 'Vuex' ,
9
- plugins : [ buble ( ) ] ,
10
+ plugins : [
11
+ replace ( { __VERSION__ : version } ) ,
12
+ buble ( )
13
+ ] ,
10
14
banner :
11
15
`/**
12
16
* vuex v${ version }
Original file line number Diff line number Diff line change 57
57
"phantomjs-prebuilt" : " ^2.1.7" ,
58
58
"rollup" : " ^0.34.13" ,
59
59
"rollup-plugin-buble" : " ^0.14.0" ,
60
+ "rollup-plugin-replace" : " ^1.1.1" ,
60
61
"rollup-watch" : " ^2.5.0" ,
61
62
"selenium-server" : " ^2.53.1" ,
62
63
"todomvc-app-css" : " ^2.0.3" ,
Original file line number Diff line number Diff line change @@ -414,6 +414,7 @@ if (typeof window !== 'undefined' && window.Vue) {
414
414
export default {
415
415
Store,
416
416
install,
417
+ version : '__VERSION__' ,
417
418
mapState,
418
419
mapMutations,
419
420
mapGetters,
You can’t perform that action at this time.
0 commit comments