fix: fixing main thread lock

This commit is contained in:
Hydra 2024-05-03 23:00:53 +01:00
parent 1eb963679e
commit e1955e11f5
No known key found for this signature in database
8 changed files with 1132 additions and 1107 deletions

View file

@ -4,7 +4,6 @@ import {
loadEnv,
swcPlugin,
externalizeDepsPlugin,
bytecodePlugin,
} from "electron-vite";
import react from "@vitejs/plugin-react";
import { vanillaExtractPlugin } from "@vanilla-extract/vite-plugin";
@ -34,12 +33,7 @@ export default defineConfig(({ mode }) => {
"@resources": resolve("resources"),
},
},
plugins: [
externalizeDepsPlugin(),
swcPlugin(),
bytecodePlugin(),
sentryPlugin,
],
plugins: [externalizeDepsPlugin(), swcPlugin(), sentryPlugin],
},
preload: {
plugins: [externalizeDepsPlugin()],
@ -54,13 +48,7 @@ export default defineConfig(({ mode }) => {
"@locales": resolve("src/locales"),
},
},
plugins: [
svgr(),
react(),
vanillaExtractPlugin(),
bytecodePlugin(),
sentryPlugin,
],
plugins: [svgr(), react(), vanillaExtractPlugin(), sentryPlugin],
},
};
});