Skip to content

fix: update to @vitejs/plugin-react v6 remove babel and add memoization#325

Closed
joshdonnell wants to merge 1 commit intolaravel:mainfrom
joshdonnell:fix/remove-babel
Closed

fix: update to @vitejs/plugin-react v6 remove babel and add memoization#325
joshdonnell wants to merge 1 commit intolaravel:mainfrom
joshdonnell:fix/remove-babel

Conversation

@joshdonnell
Copy link
Copy Markdown

With @vitejs/plugin-react v6, Babel support is dropped, meaning the auto memoization we get from the Babel compiler is no longer included.

This PR:

  • updates @vitejs/plugin-react to v6
  • Removes the babel-plugin-react-compiler from vite
  • Updates memoization where required to prevent re-renders

@rdgout
Copy link
Copy Markdown

rdgout commented Mar 25, 2026

@joshdonnell I am wondering why you choose to remove the react compiler instead of using the new way to include the react compiler. Removing automatic memoization will make this start kit worse in every way possible.

The release notes clearly state how to keep the react compiler by using the rolldown plugin.

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.

2 participants