-
-
Notifications
You must be signed in to change notification settings - Fork 10.7k
fix(dev): add Vite 7 support #13748
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(dev): add Vite 7 support #13748
Conversation
🦋 Changeset detectedLatest commit: 86e0435 The changes in this PR will be included in the next version bump. This PR includes changesets to release 11 packages
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 |
🤖 Hello there, We just published version Thanks! |
🤖 Hello there, We just published version Thanks! |
To support Vite 7 (currently in beta), this PR makes the following changes:
^7.0.0
to the peer dep range for@react-router/dev
optimizeDeps.entries
must now be an array of globs, so we map all paths through tinyglobby'sescapePath
util when the Vite version is 7+.vite-node
imports are now dynamic to ensure we're loading the ESM build since Vite 7+ is ESM onlyIn addition, this PR:
I've also manually tested this via an experimental release in a fresh create-react-router setup.