From a270f7caa5267859dfb9508cf878d657854f2bd2 Mon Sep 17 00:00:00 2001 From: Yuvraj Angad Singh <36276913+yuvrajangadsingh@users.noreply.github.com> Date: Fri, 23 Jan 2026 20:53:15 +0530 Subject: [PATCH] fix: exit with non-zero code when esbuild is missing (#16967) --- esbuild.config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/esbuild.config.js b/esbuild.config.js index 23b9ed5977..3fa6cae543 100644 --- a/esbuild.config.js +++ b/esbuild.config.js @@ -14,8 +14,8 @@ let esbuild; try { esbuild = (await import('esbuild')).default; } catch (_error) { - console.warn('esbuild not available, skipping bundle step'); - process.exit(0); + console.error('esbuild not available - cannot build bundle'); + process.exit(1); } const __filename = fileURLToPath(import.meta.url);