diff --git a/compiler/packages/babel-plugin-react-forget/src/Entrypoint/Program.ts b/compiler/packages/babel-plugin-react-forget/src/Entrypoint/Program.ts index 7403be7c64..39e820bca5 100644 --- a/compiler/packages/babel-plugin-react-forget/src/Entrypoint/Program.ts +++ b/compiler/packages/babel-plugin-react-forget/src/Entrypoint/Program.ts @@ -278,9 +278,8 @@ export function compileProgram( memoSlots: compiledFn.memoSlotsUsed, }); } catch (err) { - handleError(pass, fn.node.loc ?? null, err); - hasCriticalError ||= isCriticalError(err); + handleError(pass, fn.node.loc ?? null, err); return; }