Error handling bugfix: pass #1
This commit is contained in:
Vendored
+6
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user