Error handling bugfix: pass #1

This commit is contained in:
2026-10-02 07:04:22 +01:00
parent 39a5e91eeb
commit d8ea4f8e02
53 changed files with 1179 additions and 410 deletions
+6
View File
@@ -22,6 +22,12 @@ export default function () {
global.BUNEXT_SKIPPED_BROWSER_MODULES = new Set();
await bunextInit({ build_only: true });
// await pagesSSRBundler();
// A failed bundle must fail the command: CI and scripts rely on
// the exit code instead of grepping logs.
if (global.BUNEXT_BUILD_FAILED) {
log.error("Build failed with errors. Exiting.");
process.exit(1);
}
if (global.BUNEXT_BUNDLER_CTX_MAP) {
let bundler_ctx_json_str = JSON.stringify(global.BUNEXT_BUNDLER_CTX_MAP);
writeFileSync(BUNDLER_CTX_MAP_JSON, bundler_ctx_json_str, "utf-8");