__unstable_donotuse_reportAllBailouts: Where does compiler bailout in your codebase?
#34
Unanswered
aeharding
asked this question in
General Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there!
I am enabling react compiler in production for https://github.com/aeharding/voyager.
As a fun experiment, I enabled
__unstable_donotuse_reportAllBailouts. I found out a lot of issues were fixable by refactoring code. However, I have some issues that are simply unsupported javascript features.Here's a compiled summary of bailouts (thanks, chatgpt):
Grouped Lint Issues Summary
Handle TryStatement without a catch clause
src/features/auth/login/join/Captcha.tsx:81Handle TryStatement with a finalizer ('finally') clause
src/features/auth/AccountSwitcher.tsx:53Unhandled JsxElement, got: JSXSpreadChild
src/features/comment/inTree/Comments.tsx:88Support value blocks (conditional, logical, optional chaining, etc) within a try/catch statement
src/features/comment/useCommentActions.ts:56Handle ThisExpression expressions
src/features/media/gallery/GalleryGif.tsx:10Support ThrowStatement inside of try/catch
src/features/shared/markdown/editing/modal/contents/CommentReplyPage.tsx:63Handle Import expressions
src/features/media/gallery/GalleryProvider.tsx:56Expected Identifier, got TSAsExpression key in ObjectExpression
src/features/moderation/ban/BanUser.tsx:51Total Bailouts: 70
If you want to see these issues on a real codebase-
git clone git@github.com:aeharding/voyager.git pnpm i RCALL=1 pnpm lint # RCALL defined in compilerOptions.jshere's the raw lint logs: lint-logs.txt
Beta Was this translation helpful? Give feedback.
All reactions