fix(electron): fix electron build (#6305)

This commit is contained in:
pengx17 2024-03-25 15:57:22 +00:00
parent 3e547ce4cc
commit 00092c9955
No known key found for this signature in database
GPG Key ID: 23F23D9E8B3971ED
2 changed files with 2 additions and 2 deletions

View File

@ -61,6 +61,7 @@
"jotai-devtools": "^0.8.0",
"lodash-es": "^4.17.21",
"mixpanel-browser": "^2.49.0",
"nanoid": "^5.0.6",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-router-dom": "^6.22.3",
@ -79,7 +80,6 @@
"async-call-rpc": "^6.4.0",
"electron-updater": "^6.1.9",
"link-preview-js": "^3.0.5",
"nanoid": "^5.0.6",
"yjs": "^13.6.12"
},
"build": {

View File

@ -39,7 +39,7 @@ export const config = (): BuildOptions => {
bundle: true,
target: `node${NODE_MAJOR_VERSION}`,
platform: 'node',
external: ['electron', 'electron-updater', 'yjs', 'semver', 'tinykeys'],
external: ['electron', 'electron-updater', 'yjs', 'semver'],
format: 'cjs',
loader: {
'.node': 'copy',