Skip to content

Commit

Permalink
fix: build
Browse files Browse the repository at this point in the history
  • Loading branch information
ThaUnknown committed May 28, 2024
1 parent fc8bab6 commit 31c371f
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 59 deletions.
3 changes: 2 additions & 1 deletion capacitor/webpack.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ const capacitorConfig = {
alias: {
...alias,
wrtc: false,
'bittorrent-tracker/lib/client/http-tracker.js': resolve('../node_modules/bittorrent-tracker/lib/client/http-tracker.js')
'bittorrent-tracker/lib/client/http-tracker.js': resolve('../node_modules/bittorrent-tracker/lib/client/http-tracker.js'),
'webrtc-polyfill': resolve('../node_modules/webrtc-polyfill/browser.js')
}
},
target: 'node',
Expand Down
3 changes: 2 additions & 1 deletion electron/webpack.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ module.exports = [
'node-fetch': false,
ws: false,
wrtc: false,
'bittorrent-tracker/lib/client/http-tracker.js': resolve('../node_modules/bittorrent-tracker/lib/client/http-tracker.js')
'bittorrent-tracker/lib/client/http-tracker.js': resolve('../node_modules/bittorrent-tracker/lib/client/http-tracker.js'),
'webrtc-polyfill': resolve('../node_modules/webrtc-polyfill/browser.js')
}
},
plugins: [new HtmlWebpackPlugin({ filename: 'background.html' })],
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@
"html-webpack-plugin": "^5.6.0",
"matroska-metadata": "^1.0.6",
"mini-css-extract-plugin": "^2.8.1",
"webpack": "^5.90.3",
"webpack": "^5.91.0",
"webpack-cli": "^5.1.4",
"webpack-dev-server": "^5.0.2",
"webtorrent": "^2.2.1"
"webtorrent": "^2.3.2"
},
"devDependencies": {
"@cloudflare/workers-types": "^4.20240222.0",
Expand Down
111 changes: 56 additions & 55 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 31c371f

Please sign in to comment.