__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:81
Handle TryStatement with a finalizer ('finally') clause
src/features/auth/AccountSwitcher.tsx:53
Unhandled JsxElement, got: JSXSpreadChild
src/features/comment/inTree/Comments.tsx:88
Support value blocks (conditional, logical, optional chaining, etc) within a try/catch statement
src/features/comment/useCommentActions.ts:56
Handle ThisExpression expressions
src/features/media/gallery/GalleryGif.tsx:10
Support ThrowStatement inside of try/catch
src/features/shared/markdown/editing/modal/contents/CommentReplyPage.tsx:63
Handle Import expressions
src/features/media/gallery/GalleryProvider.tsx:56
Expected Identifier, got TSAsExpression key in ObjectExpression
src/features/moderation/ban/BanUser.tsx:51
Total 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.js
here's the raw lint logs: lint-logs.txt
Beta Was this translation helpful? Give feedback.
All reactions