File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -31,6 +31,20 @@ const umdPlugins = [
3131 babel ( ) ,
3232] ;
3333
34+ const externals = [
35+ 'aes-decrypter' ,
36+ 'global/document' ,
37+ 'global/window' ,
38+ 'm3u8-parser' ,
39+ 'mpd-parser' ,
40+ 'mux.js/lib/mp4' ,
41+ 'mux.js/lib/mp4/probe' ,
42+ 'mux.js/lib/tools/mp4-inspector' ,
43+ 'mux.js/lib/tools/ts-inspector.js' ,
44+ 'url-toolkit' ,
45+ 'video.js'
46+ ] ;
47+
3448const onwarn = ( warning ) => {
3549 if ( warning . code === 'UNUSED_EXTERNAL_IMPORT' ||
3650 warning . code === 'UNRESOLVED_IMPORT' ) {
@@ -101,6 +115,7 @@ export default [
101115 format : 'cjs' ,
102116 banner
103117 } ] ,
118+ external : externals ,
104119 onwarn
105120 } , {
106121 input : 'src/videojs-http-streaming.js' ,
@@ -117,6 +132,7 @@ export default [
117132 format : 'es' ,
118133 banner
119134 } ] ,
135+ external : externals ,
120136 onwarn
121137 }
122138] ;
You can’t perform that action at this time.
0 commit comments