Skip to content

Commit d070233

Browse files
修复未external videojs-flvjs-es6 引起的报错
1 parent 264538a commit d070233

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

‎build/webpack.config.base.js‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,10 @@ module.exports = {
6565
echarts: 'function(){try{return echarts}catch(e){return {}}}()',
6666
mapv: 'function(){try{return mapv}catch(e){return {}}}()',
6767
'@antv/g6': 'function(){try{return G6}catch(e){return {}}}()',
68-
'@tensorflow/tfjs': 'function(){try{return tf}catch(e){return {}}}()'
68+
'@tensorflow/tfjs': 'function(){try{return tf}catch(e){return {}}}()',
69+
'video.js': 'function(){try{return videojs}catch(e){return {}}}()',
70+
'flv.js': 'function(){try{return flvjs}catch(e){return {}}}()',
71+
'videojs-flvjs-es6': 'function(){try{return;}catch(e){return {}}}()'
6972
},
7073

7174
module: {

‎build/webpack.config.mapboxgl.js‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@ module.exports = {
2929
'webgl-debug': '(function(){try{return webgl-debug}catch(e){return {}}})()',
3030
xlsx: 'function(){try{return XLSX}catch(e){return {}}}()',
3131
canvg: 'function(){try{return canvg}catch(e){return {}}}()',
32-
'video.js': 'function(){try{return videojs}catch(e){return {}}}()',
33-
'flv.js': 'function(){try{return flvjs}catch(e){return {}}}()',
3432
'@turf/turf': "function(){try{return turf}catch(e){return {}}}()",
3533
jsonsql: 'function(){try{return jsonsql}catch(e){return {}}}()'
3634
})

0 commit comments

Comments
 (0)