Check if critical error before throwing
Sathya Gunasekaran committed
Nov 7, 2023 at 11:04 UTC
688305a978958c087e3a204fc40db9ea5d2cfc7f
1 file changed
+1
-2
compiler/packages/babel-plugin-react-forget/src/Entrypoint/Program.ts
+1
-2
@@ -278,9 +278,8 @@ export function compileProgram(
278
memoSlots: compiledFn.memoSlotsUsed,
279
});
280
} catch (err) {
281
- handleError(pass, fn.node.loc ?? null, err);
282
-
281
hasCriticalError ||= isCriticalError(err);
282
+ handleError(pass, fn.node.loc ?? null, err);
283
return;
284
}
285