Skip to content

Enable React Compiler for Vite apps - #264

Merged
SawyerHood merged 3 commits into
mainfrom
bb/ensure-react-compiler-is-enabled-thr_g8merkcpas
Jun 19, 2026
Merged

SawyerHood merged 3 commits into
mainfrom
bb/ensure-react-compiler-is-enabled-thr_g8merkcpas

Conversation

@SawyerHood

@SawyerHood SawyerHood commented Jun 19, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Add React Compiler dependencies for the Vite React apps
  • Wire reactCompilerPreset() through @rolldown/plugin-babel in the app and landing Vite configs
  • Enable React Compiler-aware eslint-plugin-react-hooks diagnostics in the shared ESLint config
  • Include eslint.config.mjs in Turbo lint inputs so lint cache invalidates when lint policy changes
  • Align CLI timeline test fixtures with the current timeline response contract

Verification

  • pnpm install --frozen-lockfile
  • pnpm exec turbo run typecheck --filter=@bb/app --filter=@bb/landing
  • pnpm exec turbo run build --filter=@bb/app --filter=@bb/landing
  • pnpm exec turbo run test --filter=@bb/app
  • pnpm exec turbo run typecheck test --filter=@bb/cli
  • pnpm exec turbo run lint --filter=@bb/app --filter=@bb/landing --force
  • pnpm exec turbo run lint --force
  • rg -l "react\\.memo_cache_sentinel|react/compiler-runtime" apps/app/dist apps/landing/dist

Notes

  • @bb/app currently reports 104 React Compiler adoption warnings: 54 refs, 45 set-state-in-effect, 3 immutability, and 2 purity. These are warnings so CI remains green while keeping the cleanup backlog visible.
  • @rolldown/plugin-babel currently declares Node >=22.12, while the root engine range still includes Node 20.

@SawyerHood
SawyerHood merged commit 7f3b740 into main Jun 19, 2026
6 checks passed
@SawyerHood
SawyerHood deleted the bb/ensure-react-compiler-is-enabled-thr_g8merkcpas branch June 19, 2026 16:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant