Skip to content

Commit 4cea19e

Browse files
committed
fix build script
1 parent 4eec597 commit 4cea19e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

esbuild.config.mjs

+4-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,10 @@ let outfile = "main.js";
1717
if (fs.existsSync('./.devtarget')) {
1818
const outFolderOverride = fs.readFileSync('./.devtarget', 'utf8').trim().split("\n")
1919
.map(line => line.trim()).filter(line => !line.startsWith("#") && !line.startsWith("//"))[0];
20-
outfile = path.join(outFolderOverride, outfile);
21-
console.log('Temporary output location:', outfile);
20+
if (outFolderOverride) {
21+
outfile = path.join(outFolderOverride, outfile);
22+
console.log('Temporary output location:', outfile);
23+
}
2224
}
2325

2426

0 commit comments

Comments
 (0)