File tree 2 files changed +19
-2
lines changed
2 files changed +19
-2
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,22 @@ const builds = {
38
38
alias : { he : './entity-decoder' } ,
39
39
banner
40
40
} ,
41
+ // Runtime only (ES Modules). Used by bundlers that support ES Modules,
42
+ // e.g. Rollup & Webpack 2
43
+ 'web-runtime-esm' : {
44
+ entry : path . resolve ( __dirname , '../src/entries/web-runtime.js' ) ,
45
+ dest : path . resolve ( __dirname , '../dist/vue.runtime.esm.js' ) ,
46
+ format : 'es' ,
47
+ banner
48
+ } ,
49
+ // Runtime+compiler CommonJS build (ES Modules)
50
+ 'web-full-esm' : {
51
+ entry : path . resolve ( __dirname , '../src/entries/web-runtime-with-compiler.js' ) ,
52
+ dest : path . resolve ( __dirname , '../dist/vue.esm.js' ) ,
53
+ format : 'es' ,
54
+ alias : { he : './entity-decoder' } ,
55
+ banner
56
+ } ,
41
57
// runtime-only build (Browser)
42
58
'web-runtime-dev' : {
43
59
entry : path . resolve ( __dirname , '../src/entries/web-runtime.js' ) ,
Original file line number Diff line number Diff line change 3
3
"version" : " 2.2.0-beta.2" ,
4
4
"description" : " Reactive, component-oriented view layer for modern web interfaces." ,
5
5
"main" : " dist/vue.runtime.common.js" ,
6
+ "module" : " dist/vue.runtime.esm.js" ,
7
+ "unpkg" : " dist/vue.js" ,
6
8
"typings" : " types/index.d.ts" ,
7
9
"files" : [
8
10
" dist/vue.js" ,
117
119
"webpack" : " ^2.2.0" ,
118
120
"weex-js-runtime" : " ^0.17.0-alpha4" ,
119
121
"weex-vdom-tester" : " ^0.1.4"
120
- },
121
- "unpkg" : " dist/vue.js"
122
+ }
122
123
}
You can’t perform that action at this time.
0 commit comments