use import instead of eval to load js

This commit is contained in:
codetypes committed 2025-03-24 23:31:40 +08:00
1 parent ceef9db425
commit 6eb48532a4
7 files changed
+56 -49

No files matched your search

+1 -1
View File
@@ -9,7 +9,6 @@ import pkg from "./package.json";
export default defineConfig(({ command }) => {
rmSync("dist-electron", { recursive: true, force: true });
const isServe = command === "serve";
const isBuild = false; //command === "build";
const sourcemap = true; //isServe || !!process.env.VSCODE_DEBUG;
@@ -38,6 +37,7 @@ export default defineConfig(({ command }) => {
vite: {
build: {
sourcemap,
target: ["chrome89", "edge89", "firefox89", "safari15"],
minify: isBuild,
outDir: "dist-electron/main",
rollupOptions: {