This commit is contained in:
Rizky 2024-07-17 02:43:02 +07:00
parent 58e7059647
commit 73bb5cee2c
3 changed files with 3 additions and 4 deletions

View File

@ -99,8 +99,7 @@ Error generating stack: `+o.message+`
try { try {
${p} ${p}
} catch(e) { } catch(e) {
console.error("Error at item ${t.item.name} (id: ${t.item.id}): console.error("Error at item ${t.item.name} (id: ${t.item.id}):\\n", ___js);
", ___js);
console.error(e); console.error(e);
} }
`)(...Object.values(u),t.item.adv?.js)}catch(f){console.error(`Error at item ${t.item.name} (id: ${t.item.id}): `)(...Object.values(u),t.item.adv?.js)}catch(f){console.error(`Error at item ${t.item.name} (id: ${t.item.id}):

View File

@ -172,7 +172,7 @@ export const viEvalScript = (
try { try {
${src} ${src}
} catch(e) { } catch(e) {
console.error("Error at item ${meta.item.name} (id: ${meta.item.id}):\n", ___js); console.error("Error at item ${meta.item.name} (id: ${meta.item.id}):\\n", ___js);
console.error(e); console.error(e);
} }
` `

View File

@ -17,7 +17,7 @@ export const parcelBuild = async () => {
), ),
g.mode === "dev" ? "watch" : "build", g.mode === "dev" ? "watch" : "build",
"./src/index.html", "./src/index.html",
g.mode === "dev" ? "--no-hmr" : "--no-optimize", g.mode === "dev" ? "--no-hmr" : "",
"--dist-dir", "--dist-dir",
dir.path(`app/static`), dir.path(`app/static`),
]; ];