-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Vite: Prepare for Vite 4 #20131
Vite: Prepare for Vite 4 #20131
Conversation
Not all frameworks use imports from "vite" directly.
@@ -56,8 +56,7 @@ | |||
}, | |||
"devDependencies": { | |||
"@types/node": "^16.0.0", | |||
"typescript": "^4.9.3", | |||
"vite": "^3.1.3" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you elaborate why html, web-components and sveltekit are dropping Vite as a dependency, while the others are not?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, that's why.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
The UI Storybook also looks to be working fine, which is a good sign.
I've rolled this PR into #20139, there's not really a need to keep them separate. |
Issue:
Vite is about to release version 4 in a few days, but our packages depend strictly on version 3.
What I did
dependency
range to encompass version 3 and 4.devDependency
to the latest version 4 beta.How to test
Ideally, we would also update our sandboxes to use
yarn create vite@beta
or something like that. Butcreate-vite
has not yet been updated to use the beta. I'm discussing with the vite team if that can be done prior to the final release.So, I think this isn't a great test that vite 4 will work correctly, until we can update those sandboxes, but we need to make this change anyway to avoid problems once vite 4 is released.