File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 11import { 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
55import react from '@vitejs/plugin-react' ;
@@ -55,7 +55,7 @@ const copySimplePeerMinJsStaticFiles = () => {
5555
5656export 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 : {
You can’t perform that action at this time.
0 commit comments