From b680d8ef96d5b325a8bd59d908f436e63f0a84e2 Mon Sep 17 00:00:00 2001 From: luoluo <1425735414@qq.com> Date: Thu, 4 Jan 2024 17:28:44 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0buffer?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/renderer/src/main/config-overrides.js | 1 + app/renderer/src/main/package.json | 1 + 2 files changed, 2 insertions(+) diff --git a/app/renderer/src/main/config-overrides.js b/app/renderer/src/main/config-overrides.js index b901d49bfd..efc0800c23 100644 --- a/app/renderer/src/main/config-overrides.js +++ b/app/renderer/src/main/config-overrides.js @@ -21,6 +21,7 @@ module.exports = { addWebpackResolve({ fallback: { fs: false, + buffer: require.resolve('buffer') }, }), fixBabelImports('import', { diff --git a/app/renderer/src/main/package.json b/app/renderer/src/main/package.json index c27f89c2b7..a00b60df32 100644 --- a/app/renderer/src/main/package.json +++ b/app/renderer/src/main/package.json @@ -128,6 +128,7 @@ ], "devDependencies": { "babel-plugin-import": "^1.13.8", + "buffer": "^6.0.3", "env-cmd": "^10.1.0", "node-polyfill-webpack-plugin": "^3.0.0", "path-browserify": "^1.0.1",