[babel] Simplify noEmit and hasCriticalError check

This commit is contained in:
Sathya Gunasekaran
2023-11-07 11:04:35 +00:00
parent 688305a978
commit bccd06a632
@@ -283,9 +283,7 @@ export function compileProgram(
return;
}
if (pass.opts.noEmit) {
return;
} else if (!hasCriticalError) {
if (!pass.opts.noEmit && !hasCriticalError) {
compiledFns.push({ originalFn: fn, compiledFn });
}
};