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 -2
View File
@@ -59,7 +59,7 @@ if (buildOutput || buildProject || buildHelp) {
b3util.initWorkdir(workdir, (msg) => {
console.error(`${msg}`);
});
const hasError = b3util.buildProject(project, buildDir);
const hasError = await b3util.buildProject(project, buildDir);
if (hasError) {
console.error("build failed***");
app.quit();
@@ -142,7 +142,6 @@ async function createWindow(projectPath?: string) {
// Read more on https://www.electronjs.org/docs/latest/tutorial/context-isolation
nodeIntegration: true,
contextIsolation: false,
webSecurity: false,
},
});