Skip to content

Commit

Permalink
feat(client/windows): call fetchResource as a library
Browse files Browse the repository at this point in the history
  • Loading branch information
jyyi1 committed Nov 7, 2024
1 parent 5f20056 commit de56679
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 1 deletion.
5 changes: 4 additions & 1 deletion client/electron/webpack_electron_main.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import {fileURLToPath} from 'url';

import webpack from 'webpack';


const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);

Expand All @@ -37,6 +36,10 @@ export default ({sentryDsn, appVersion}) => [
use: 'ts-loader',
exclude: /node_modules/,
},
{
test: /\.node$/,
loader: 'node-loader',
},
],
},
resolve: {
Expand Down
2 changes: 2 additions & 0 deletions client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
"cordova-plugin-statusbar": "^2.2.3",
"electron-updater": "^5.0.5",
"fs-extra": "^11.2.0",
"koffi": "^2.9.1",
"lit": "^2.2.2",
"ShadowsocksConfig": "github:Jigsaw-Code/outline-shadowsocksconfig#v0.2.1",
"socks": "^1.1.10",
Expand Down Expand Up @@ -105,6 +106,7 @@
"karma-webpack": "^5.0.0",
"minimist": "^1.2.6",
"node-fetch": "^3.3.0",
"node-loader": "^2.0.0",
"node-gyp": "^10.0.1",
"postcss": "^7.0.39",
"postcss-rtl": "^1.7.3",
Expand Down
43 changes: 43 additions & 0 deletions package-lock.json

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

0 comments on commit de56679

Please sign in to comment.