mirror of https://github.com/FreeTubeApp/FreeTube
Use smaller web version of linkedom (#3115)
This commit is contained in:
parent
14caa8ccad
commit
e140d5ef98
|
@ -32,10 +32,6 @@ const config = {
|
|||
path: path.join(__dirname, '../dist'),
|
||||
filename: '[name].js',
|
||||
},
|
||||
externals: {
|
||||
// ignore linkedom's unnecessary broken canvas import, as youtubei.js only uses linkedom to generate DASH manifests
|
||||
canvas: '{}'
|
||||
},
|
||||
module: {
|
||||
rules: [
|
||||
{
|
||||
|
@ -133,6 +129,9 @@ const config = {
|
|||
alias: {
|
||||
vue$: 'vue/dist/vue.common.js',
|
||||
|
||||
// use the web version of linkedom
|
||||
linkedom$: 'linkedom/worker',
|
||||
|
||||
// defaults to the prebundled browser version which causes webpack to error with:
|
||||
// "Critical dependency: require function is used in a way in which dependencies cannot be statically extracted"
|
||||
// webpack likes to bundle the dependencies itself, could really have a better error message though
|
||||
|
|
Loading…
Reference in New Issue