Skip to content

Commit 7f17945

Browse files
committed
fix bug
1 parent d130cb9 commit 7f17945

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

electron.vite.config.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { resolve } from 'path';
2-
import { defineConfig, externalizeDepsPlugin } from 'electron-vite';
2+
import { defineConfig, externalizeDepsPlugin, bytecodePlugin } from 'electron-vite';
33
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
44
// @ts-ignore
55
import react from '@vitejs/plugin-react';
@@ -55,7 +55,7 @@ const copySimplePeerMinJsStaticFiles = () => {
5555

5656
export default defineConfig({
5757
main: {
58-
plugins: [externalizeDepsPlugin()],
58+
plugins: [externalizeDepsPlugin(), bytecodePlugin()],
5959
},
6060
preload: {
6161
build: {
@@ -67,7 +67,7 @@ export default defineConfig({
6767
},
6868
},
6969
},
70-
plugins: [externalizeDepsPlugin()],
70+
plugins: [externalizeDepsPlugin(), bytecodePlugin()],
7171
},
7272
renderer: {
7373
build: {

0 commit comments

Comments
 (0)