File tree Expand file tree Collapse file tree 3 files changed +10
-9458
lines changed Expand file tree Collapse file tree 3 files changed +10
-9458
lines changed Original file line number Diff line number Diff line change @@ -19,46 +19,27 @@ var main = fs
19
19
. replace ( / V u e \. v e r s i o n = ' [ \d \. ] + ' / , "Vue.version = '" + version + "'" )
20
20
fs . writeFileSync ( 'src/index.js' , main )
21
21
22
- // CommonJS build.
23
- // this is used as the "main" field in package.json
24
- // and used by bundlers like Webpack and Browserify.
22
+ // Dev build
25
23
rollup . rollup ( {
26
24
entry : 'src/index.js' ,
27
25
plugins : [
26
+ replace ( {
27
+ 'process.env.NODE_ENV' : "'development'"
28
+ } ) ,
28
29
babel ( {
29
30
loose : 'all'
30
31
} )
31
32
]
32
33
} )
33
34
. then ( function ( bundle ) {
34
- return write ( 'dist/vue.common.js' , bundle . generate ( {
35
- format : 'cjs' ,
36
- banner : banner
35
+ return write ( 'dist/vue.js' , bundle . generate ( {
36
+ format : 'umd' ,
37
+ banner : banner ,
38
+ moduleName : 'Vue'
37
39
} ) . code )
38
40
} )
39
- // Standalone Dev Build
40
41
. then ( function ( ) {
41
- return rollup . rollup ( {
42
- entry : 'src/index.js' ,
43
- plugins : [
44
- replace ( {
45
- 'process.env.NODE_ENV' : "'development'"
46
- } ) ,
47
- babel ( {
48
- loose : 'all'
49
- } )
50
- ]
51
- } )
52
- . then ( function ( bundle ) {
53
- return write ( 'dist/vue.js' , bundle . generate ( {
54
- format : 'umd' ,
55
- banner : banner ,
56
- moduleName : 'Vue'
57
- } ) . code )
58
- } )
59
- } )
60
- . then ( function ( ) {
61
- // Standalone Production Build
42
+ // Production build
62
43
return rollup . rollup ( {
63
44
entry : 'src/index.js' ,
64
45
plugins : [
You can’t perform that action at this time.
0 commit comments