Skip to content

feat: add Vite 8 support#14876

Merged
markdalgleish merged 9 commits intodevfrom
markdalgleish/vite-8
Mar 23, 2026
Merged

feat: add Vite 8 support#14876
markdalgleish merged 9 commits intodevfrom
markdalgleish/vite-8

Conversation

@markdalgleish
Copy link
Copy Markdown
Member

@markdalgleish markdalgleish commented Mar 16, 2026

This adds Vite 8 to our peer dep range for @react-router/dev, removes our temporary rolldown-vite support and fixes, updates our Vite plugin to provide the correct config for oxc/Rolldown, and updates tests/playgrounds.

Vite 8 is now our new default when version numbers are not specified, and I've added some Vite 6 playgrounds for consistency with the other versioned templates.

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Mar 16, 2026

🦋 Changeset detected

Latest commit: 5c3ccef

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 11 packages
Name Type
@react-router/dev Major
@react-router/fs-routes Major
@react-router/remix-routes-option-adapter Major
create-react-router Major
react-router Major
react-router-dom Major
@react-router/architect Major
@react-router/cloudflare Major
@react-router/express Major
@react-router/node Major
@react-router/serve Major

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@luisrudge
Copy link
Copy Markdown

will this fix this warning?

[vite] warning: `esbuild` option was specified by "react-router" plugin. This option is deprecated, please use `oxc` instead.

@markdalgleish
Copy link
Copy Markdown
Member Author

@luisrudge Yep, it'll fix that.

@markdalgleish markdalgleish merged commit 5dc12ea into dev Mar 23, 2026
9 checks passed
@markdalgleish markdalgleish deleted the markdalgleish/vite-8 branch March 23, 2026 04:19
@github-actions
Copy link
Copy Markdown
Contributor

🤖 Hello there,

We just published version 7.14.0-pre.0 which includes this pull request. If you'd like to take it for a test run please try it out and let us know what you think!

Thanks!

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 2, 2026

🤖 Hello there,

We just published version 7.14.0 which includes this pull request. If you'd like to take it for a test run please try it out and let us know what you think!

Thanks!

@AviVahl
Copy link
Copy Markdown

AviVahl commented Apr 2, 2026

@markdalgleish even with this change, vite@7 is still gets installed downstream due to @react-router/dev depending on an older vite-node major.

@tobigumo
Copy link
Copy Markdown

tobigumo commented Apr 3, 2026

There's a PR to replace vite-node with Vite's native Environment API, but that API only exists in Vite 6+, so it would require dropping Vite 5 support. Would that be on the table?

@vixalien
Copy link
Copy Markdown

vixalien commented Apr 8, 2026

As said author of PR #14862 it would be nice to have any feedback or review (esp. from react router team)

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.

5 participants