feat(react): add raw rolldown support#513
Merged
Merged
Conversation
ArnaudBarre
approved these changes
Jun 18, 2025
Member
ArnaudBarre
left a comment
There was a problem hiding this comment.
My personal feeling is that a rolldown-babel plugin would take less than 20 lines to write and would be better suited than this one that most of the logic would be useless. But I can understand that people want to use the same dep for various needs
| "react": "^19.1.0", | ||
| "react-dom": "^19.1.0", | ||
| "rolldown": "1.0.0-beta.17", | ||
| "unbuild": "^3.5.0", |
Member
Author
|
Users can use |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This adds raw rolldown support. This will make
@vitejs/plugin-reactto be able to use with rolldown / tsdown.While the plugins mainly focuses on react-refresh, user may use this plugin for react-compiler.
It'd be nice to make this plugin work with rolldown / tsdown in those cases.
Since the reason is react-compiler, I only made changes to
@vitejs/plugin-react.fixes rolldown/tsdown#294