Skip to content

Commit

Permalink
Merge 4bbdf7f into 363858f
Browse files Browse the repository at this point in the history
  • Loading branch information
thijstriemstra committed Aug 10, 2020
2 parents 363858f + 4bbdf7f commit d65de42
Showing 1 changed file with 22 additions and 8 deletions.
30 changes: 22 additions & 8 deletions build-config/fragments/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,28 @@ module.exports = {
},
// specify dependencies for the library that are not resolved by webpack,
// but become dependencies of the output: they are imported from the
// environment during runtime.
externals: [
// mandatory
{'video.js': 'videojs'},
// optional
{'wavesurfer.js': 'WaveSurfer'},
{'recordrtc': 'RecordRTC'}
],
// environment during runtime and never directly included in the
// videojs-record library
externals: {
'video.js': {
commonjs: 'video.js',
commonjs2: 'video.js',
amd: 'video.js',
root: 'videojs' // indicates global variable
},
'wavesurfer.js': {
commonjs: 'wavesurfer.js',
commonjs2: 'wavesurfer.js',
amd: 'wavesurfer.js',
root: 'WaveSurfer' // indicates global variable
},
'recordrtc': {
commonjs: 'recordrtc',
commonjs2: 'recordrtc',
amd: 'recordrtc',
root: 'RecordRTC' // indicates global variable
}
},
module: {
rules: [
{
Expand Down

0 comments on commit d65de42

Please sign in to comment.