mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-11-30 15:42:49 +03:00
fix(electron): fix electron build (#6305)
This commit is contained in:
parent
3e547ce4cc
commit
00092c9955
@ -61,6 +61,7 @@
|
|||||||
"jotai-devtools": "^0.8.0",
|
"jotai-devtools": "^0.8.0",
|
||||||
"lodash-es": "^4.17.21",
|
"lodash-es": "^4.17.21",
|
||||||
"mixpanel-browser": "^2.49.0",
|
"mixpanel-browser": "^2.49.0",
|
||||||
|
"nanoid": "^5.0.6",
|
||||||
"react": "^18.2.0",
|
"react": "^18.2.0",
|
||||||
"react-dom": "^18.2.0",
|
"react-dom": "^18.2.0",
|
||||||
"react-router-dom": "^6.22.3",
|
"react-router-dom": "^6.22.3",
|
||||||
@ -79,7 +80,6 @@
|
|||||||
"async-call-rpc": "^6.4.0",
|
"async-call-rpc": "^6.4.0",
|
||||||
"electron-updater": "^6.1.9",
|
"electron-updater": "^6.1.9",
|
||||||
"link-preview-js": "^3.0.5",
|
"link-preview-js": "^3.0.5",
|
||||||
"nanoid": "^5.0.6",
|
|
||||||
"yjs": "^13.6.12"
|
"yjs": "^13.6.12"
|
||||||
},
|
},
|
||||||
"build": {
|
"build": {
|
||||||
|
@ -39,7 +39,7 @@ export const config = (): BuildOptions => {
|
|||||||
bundle: true,
|
bundle: true,
|
||||||
target: `node${NODE_MAJOR_VERSION}`,
|
target: `node${NODE_MAJOR_VERSION}`,
|
||||||
platform: 'node',
|
platform: 'node',
|
||||||
external: ['electron', 'electron-updater', 'yjs', 'semver', 'tinykeys'],
|
external: ['electron', 'electron-updater', 'yjs', 'semver'],
|
||||||
format: 'cjs',
|
format: 'cjs',
|
||||||
loader: {
|
loader: {
|
||||||
'.node': 'copy',
|
'.node': 'copy',
|
||||||
|
Loading…
Reference in New Issue
Block a user