Skip to content

feat: add React Compiler via babel plugin to Vite config#3558

Draft
impoiler wants to merge 1 commit into
devfrom
05-18-feat_enable_react-compiler
Draft

feat: add React Compiler via babel plugin to Vite config#3558
impoiler wants to merge 1 commit into
devfrom
05-18-feat_enable_react-compiler

Conversation

@impoiler
Copy link
Copy Markdown
Contributor

@impoiler impoiler commented May 18, 2026

Summary

Enables the React Compiler in the UI build pipeline to allow automatic memoization and optimization of React components at compile time.

Changes

  • Added @rolldown/plugin-babel (v0.2.3) and babel-plugin-react-compiler (v1.0.0) as dev dependencies
  • Configured vite.config.mts to apply the React Compiler Babel preset via the rolldown Babel plugin, running alongside the existing React Vite plugin

Type of change

  • Bug fix
  • Feature
  • Refactor
  • Documentation
  • Chore/CI

Affected areas

  • Core (Go)
  • Transports (HTTP)
  • Providers/Integrations
  • Plugins
  • UI (React)
  • Docs

How to test

cd ui
npm i
npm run build

Verify the build completes successfully and that the React Compiler transforms are applied without errors.

Screenshots/Recordings

N/A

Breaking changes

  • Yes
  • No

Related issues

N/A

Security considerations

No security implications. This is a build-time transformation only.

Checklist

  • I read docs/contributing/README.md and followed the guidelines
  • I added/updated tests where appropriate
  • I updated documentation where needed
  • I verified builds succeed (Go and UI)
  • I verified the CI pipeline passes locally if applicable

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 18, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: d2ca5dd9-9101-4666-b48b-0d736ae31b0d

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch 05-18-feat_enable_react-compiler

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@impoiler impoiler changed the title feat: enable react-compiler feat: add React Compiler via babel plugin to Vite config May 18, 2026
@impoiler impoiler self-assigned this May 18, 2026
@impoiler impoiler force-pushed the 05-18-feat_enable_react-compiler branch 5 times, most recently from d9e12c8 to 9f67d53 Compare May 20, 2026 06:37
@impoiler impoiler force-pushed the 05-18-feat_enable_react-compiler branch from 9f67d53 to a18865d Compare May 20, 2026 10:25
@impoiler impoiler force-pushed the 05-18-feat_enable_react-compiler branch from a18865d to af2fc69 Compare May 21, 2026 03:56
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