React Compiler in Vite 8

Thapa Technical
Thapa Technical
63 followers
Apr 15, 2026

Most React developers copied their vite.config.js from a tutorial — and in 2026,
that config silently stopped working. No error. No warning. The React Compiler
just quietly did nothing.

In this video I go deep into WHY that happened. This isn't a "here's the fix"
video — this is the video that explains the entire architectural shift that
happened in Vite 8: why Babel was removed from @vitejs/plugin-react, what Oxc
actually does and why it replaced Babel for JSX transforms, what Rolldown is and
why @rolldown/plugin-babel now exists as a separate plugin, and exactly what the
React Compiler does at the AST level to automatically replace useMemo,
useCallback, and React.memo.

I also show you the real proof — the Memo ✨ badge in React DevTools, the
compiled output with _c() cache slots in browser Sources, and a Set-based memory
tracker that makes reference leaks visible on screen.

If you've been writing React for more than a year, this video will change how you
think about your build pipeline.

------------------------------------------------------------------------------------
🔗 Useful Playlists

📘 Next.js Full Stack Playlist:
https://youtube.com/playlist?list=PLwGdqUZWnOp0lwvSBaIzzgV9X0ZiZ-42O&si=aQ_TNBNNx5L7V_bn

⚛️ React.js Playlist:
https://youtube.com/playlist?list=PLwGdqUZWnOp1Rab71vx2zMF6qpwGDB2Z1&si=sDZRxsYNetYmojKd

💻 TypeScript Playlist:
https://youtube.com/playlist?list=PLwGdqUZWnOp0xfHQFmlL52b_6-QZ0mnk_&si=c4jfsd5ElDC1p0A5
------------------------------------------------------------------------------------
💸 Get All My YouTube Videos' Source Code for just ₹199! Grab Now - https://thapatechnical.shop/source-code

📺 Watch the complete Node.JS Playlist here :https://youtube.com/playlist?list=PLwGdqUZWnOp3KELplHtc-RnJ5xTUPqdgH&si=_ob8F88HYxCdspup

🔥 Access Source Code, PPT & Notes here for Free : https://www.thapatechnical.com/2024/11/introduction-to-nodejs.html
------------------------------------------------------------------------

🚀 Boost Your Skills with these Pre-Requisite Videos:

🔗 Best HTML Course - https://youtu.be/5ccq_nLHneE
🔗 Best CSS Course - https://youtu.be/MSICFljRcb4
🔗 JavaScript Basics Course Part 1 - https://youtu.be/13gLB6hDHR8
🔗 JavaScript Advanced Course Part 2 - https://youtu.be/YwsOCN8woA8

------------------------------------------------------------------------
💸 Build Your Own E-commerce Website for Free! - https://www.thapatechnical.com/2024/03/build-complete-ecommerce-website-using.html

------------------------------------------------------------------------
✌️ Join Us!

🚀 Become a Member: Unlock perks, free source code, and more Join Now : https://www.youtube.com/channel/UCwfaAHy4zQUb2APNOGXUCCA/join
📷 Connect on Instagram: https://www.instagram.com/thapatechnical
🗨️ Join Our Discord Server: Hang out with fellow programmers Discord Link: https://discord.gg/MdScmCsua6

------------------------------------------------------------------------

⌛TIMELINE⏳
00:00 — What this video covers
00:13 — Why the React Compiler exists (the real reason)
00:40 — State of React in 2025 / 2026
01:05 — The problem with manual useMemo and useCallback
02:20 — What @vitejs/plugin-react was doing before (use case 1: JSX transform)
02:50 — Use case 2: Fast Refresh / HMR — what Babel was powering
03:10 — How Babel works: AST, plugins, and the transform pipeline
04:00 — Why the React Compiler is a Babel plugin under the hood
04:25 — What is Rolldown and why Vite 8 is built on it
04:40 — Oxc: the Rust-based tool now doing JSX + HMR in plugin-react v6
05:40 — The new vite.config.js — reactCompilerPreset and @rolldown/plugin-babel
07:10 — Why you now need a separate plugin (the architectural reason)
07:25 — Live code demo — compiler running, Sets staying at size 1
07:50 — How to confirm the compiler is working (DevTools + Sources)
08:40 — What to watch next