diff --git a/esbuild.config.mjs b/esbuild.config.mjs index 5cc6567..636ee71 100644 --- a/esbuild.config.mjs +++ b/esbuild.config.mjs @@ -32,6 +32,8 @@ esbuild "electron", "fs", "crypto", + "tls", + "net", // ...builtins ], format: "cjs", diff --git a/package.json b/package.json index 7eceee9..bd50de2 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,8 @@ "path": "path-browserify", "process": "process/browser", "stream": "stream-browserify", - "crypto": "crypto-browserify" + "crypto": "crypto-browserify", + "url": "url/" }, "source": "main.ts", "keywords": [], @@ -53,7 +54,7 @@ "@aws-sdk/client-s3": "^3.37.0", "@aws-sdk/lib-storage": "^3.40.1", "@aws-sdk/signature-v4-crt": "^3.37.0", - "@azure/msal-node": "1.5.0", + "@azure/msal-node": "^1.6.0", "@fyears/tsqueue": "^1.0.1", "@microsoft/microsoft-graph-client": "^3.0.1", "acorn": "^8.5.0", @@ -76,6 +77,7 @@ "rfc4648": "^1.5.0", "rimraf": "^3.0.2", "stream-browserify": "^3.0.0", + "url": "^0.11.0", "util": "^0.12.4", "webdav": "^4.7.0", "webdav-fs": "^4.0.0", diff --git a/webpack.config.js b/webpack.config.js index 272c359..03e8c62 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -57,6 +57,7 @@ module.exports = { // events: require.resolve("events"), // http: require.resolve("stream-http"), // https: require.resolve("https-browserify"), + net: false, // os: require.resolve("os-browserify/browser"), path: require.resolve("path-browserify"), // punycode: require.resolve("punycode"), @@ -66,8 +67,9 @@ module.exports = { // string_decoder: require.resolve("string_decoder"), // sys: require.resolve("util"), // timers: require.resolve("timers-browserify"), + tls: false, // tty: require.resolve("tty-browserify"), - // url: require.resolve("url"), + url: require.resolve("url/"), // util: require.resolve("util"), // vm: require.resolve("vm-browserify"), // zlib: require.resolve("browserify-zlib"),