Skip to content

Prefer Oxc's React Compiler instead of Babel - #857

Merged
No767 merged 2 commits into
react-rewritefrom
exp-react-compiler
Aug 23, 2026
Merged

Prefer Oxc's React Compiler instead of Babel#857
No767 merged 2 commits into
react-rewritefrom
exp-react-compiler

Conversation

@No767

@No767 No767 commented Aug 23, 2026

Copy link
Copy Markdown
Member

Summary

A couple of days ago, Oxc released support for the Rust port of the React Compiler. Due to several issues with Meta's version, they basically forked it and made it work on their systems instead. We use to use the Babel-based version of the React Compiler babel-plugin-react-compiler, but when building via Rolldown, the work done by the React Compiler was done on a JS thread, causing it to slow the build times and throwing warnings saying that the React Compiler took too much of the plugin timings. Now as @vitejs/plugin-react supports Oxc's new version of the React Compiler (found in oxc-transform-react), we basically use the full power of Rolldown to run our React Compiler instead of sending it to a JS thread using Babel. We basically chopped our build times from 10+ seconds to literally just 3 seconds.

In addition, due to this native integration, Oxlint now fully support rules that utilize the React Compiler. So, we also adapt our rules to use that instead of relying on eslint-plugin-react-x and eslint-plugin-react-hooks for compiler based checks.

Also reverts #856 as now we have fixed the root cause of it.

Types of changes

What types of changes does your code introduce to the UC Merced's ACM Chapter Website?
Put an x in the boxes that apply

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation Update (Updates to README.md, the documentation, etc)
  • Other (if none of the other choices apply)

Checklist

Put an x in the boxes that apply

  • If code changes were made then they have been tested.
  • All workflows pass with my new changes
  • This PR does not address a duplicate issue or PR

@netlify

netlify Bot commented Aug 23, 2026

Copy link
Copy Markdown

Deploy Preview for ucmacm ready!

Name Link
🔨 Latest commit 2898a7a
🔍 Latest deploy log https://app.netlify.com/projects/ucmacm/deploys/6a8aa3ce1e3cdc00085347d3
😎 Deploy Preview https://deploy-preview-857--ucmacm.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 87
Accessibility: 97
Best Practices: 92
SEO: 83
PWA: 100
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

@sonarqubecloud

Copy link
Copy Markdown

@No767
No767 merged commit 254a310 into react-rewrite Aug 23, 2026
10 checks passed
@No767
No767 deleted the exp-react-compiler branch August 23, 2026 07:42
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