mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
[babel] Simplify noEmit and hasCriticalError check
This commit is contained in:
@@ -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 });
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user