fix: exit with non-zero code when esbuild is missing (#16967)

This commit is contained in:
Yuvraj Angad Singh
2026-01-23 20:53:15 +05:30
committed by GitHub
parent 3c832ddbeb
commit a270f7caa5

View File

@@ -14,8 +14,8 @@ let esbuild;
try { try {
esbuild = (await import('esbuild')).default; esbuild = (await import('esbuild')).default;
} catch (_error) { } catch (_error) {
console.warn('esbuild not available, skipping bundle step'); console.error('esbuild not available - cannot build bundle');
process.exit(0); process.exit(1);
} }
const __filename = fileURLToPath(import.meta.url); const __filename = fileURLToPath(import.meta.url);