Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions _scripts/webpack.main.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ const config = {
new webpack.DefinePlugin({
'process.platform': `'${process.platform}'`,
'process.env.IS_ELECTRON_MAIN': true
}),
// `ws` conditionally requires these optional native performance addons and handles
// them missing at runtime, but webpack can't resolve them at bundle time.
new webpack.IgnorePlugin({
resourceRegExp: /^(bufferutil|utf-8-validate)$/
})
],
output: {
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
"googlevideo": "^4.0.4",
"marked": "^18.0.6",
"process": "^0.11.10",
"qrcode": "^1.5.4",
"shaka-player": "^5.1.12",
"swiper": "^14.0.5",
"terser": "^5.49.0",
Expand All @@ -71,6 +72,7 @@
"vue-observe-visibility": "^2.0.0-alpha.1",
"vue-router": "^5.1.0",
"vuex": "^4.1.0",
"ws": "^8.21.0",
"youtubei.js": "^17.2.0"
},
"devDependencies": {
Expand Down
Loading