diff --git a/packages/bazel/src/ngc-wrapped/index.ts b/packages/bazel/src/ngc-wrapped/index.ts index c2241f83ff..02b9b14b04 100644 --- a/packages/bazel/src/ngc-wrapped/index.ts +++ b/packages/bazel/src/ngc-wrapped/index.ts @@ -267,7 +267,7 @@ export function compile({allowNonHermeticReads, allDepsCompiledWithBazel = true, fs.writeFileSync(bazelOpts.manifest, manifest); } } - + // If compilation fails unexpectedly, performCompilation returns no program. // Make sure not to crash but report the diagnostics. if (!program) return {program, diagnostics};