Skip to content

docs: Update Vite React Compiler setup for @vitejs/plugin-react@6.0.0#8364

Open
MorikawaSouma wants to merge 2 commits intoreactjs:mainfrom
MorikawaSouma:fix/update-vite-react-compiler-config-8353
Open

docs: Update Vite React Compiler setup for @vitejs/plugin-react@6.0.0#8364
MorikawaSouma wants to merge 2 commits intoreactjs:mainfrom
MorikawaSouma:fix/update-vite-react-compiler-config-8353

Conversation

@MorikawaSouma
Copy link

Summary

This PR updates the Vite React Compiler setup instructions to work with @vitejs/plugin-react@6.0.0, which removed the inline Babel option.

Changes

  • Add instructions for using reactCompilerPreset with @rolldown/plugin-babel
  • Document that the inline babel option was removed in version 6.0.0
  • Keep backward compatibility note for users with older versions
  • Provide alternative approach using Babel plugin directly
  • Remove outdated vite-plugin-babel reference

Testing

Documentation only change.

Related Issue

Fixes #8353

References

This fixes a grammar error where 'a Action' should be 'an Action' since
'Action' starts with a vowel sound.

Related to reactjs#6713 - Capitalize React concepts in docs
- Add instructions for using reactCompilerPreset with @rolldown/plugin-babel
- Document that inline babel option was removed in version 6.0.0
- Keep backward compatibility note for older versions
- Remove outdated vite-plugin-babel reference

Fixes reactjs#8353
@github-actions
Copy link

Size changes

Details

📦 Next.js Bundle Analysis for react-dev

This analysis was generated by the Next.js Bundle Analysis action. 🤖

This PR introduced no changes to the JavaScript bundle! 🙌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Mistake]: Outdated React Compiler setup instructions with Vite

1 participant