File tree 4 files changed +20
-9
lines changed
4 files changed +20
-9
lines changed Original file line number Diff line number Diff line change 34
34
.idea /
35
35
36
36
core.js
37
+ core.es.js
37
38
38
39
# Ignore Chinese clones for now.
39
40
lang /zh-Han * .json
Original file line number Diff line number Diff line change @@ -5,3 +5,4 @@ dist/video-js-*.zip
5
5
! es5 /**
6
6
! src /css /**
7
7
! core.js
8
+ ! core.es.js
Original file line number Diff line number Diff line change 158
158
" sandbox" ,
159
159
" test/dist" ,
160
160
" test/api" ,
161
- " core.js"
161
+ " core.js" ,
162
+ " core.es.js"
162
163
]
163
164
},
164
165
"greenkeeper" : {
Original file line number Diff line number Diff line change @@ -186,16 +186,24 @@ export default cliargs => [
186
186
onwarn,
187
187
watch
188
188
} ,
189
- // core
189
+ // core cjs, es
190
190
{
191
191
input : 'src/js/video.js' ,
192
- output : {
193
- format : 'cjs' ,
194
- file : 'core.js' ,
195
- strict : false ,
196
- banner,
197
- globals : globals . module
198
- } ,
192
+ output : [
193
+ {
194
+ format : 'es' ,
195
+ file : 'core.es.js' ,
196
+ strict : false ,
197
+ banner,
198
+ globals : globals . module
199
+ } , {
200
+ format : 'cjs' ,
201
+ file : 'core.js' ,
202
+ strict : false ,
203
+ banner,
204
+ globals : globals . module
205
+ }
206
+ ] ,
199
207
external : externals . module ,
200
208
plugins : [
201
209
json ( ) ,
You can’t perform that action at this time.
0 commit comments