Skip to content
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

Closed
wants to merge 2 commits into from
Closed

Vite: Prepare for Vite 4 #20131

wants to merge 2 commits into from

Conversation

IanVS
Copy link
Member

@IanVS IanVS commented Dec 7, 2022

Issue:

Vite is about to release version 4 in a few days, but our packages depend strictly on version 3.

What I did

  • I removed vite from some of the frameworks which do not directly import from Vite.
  • I updated the dependency range to encompass version 3 and 4.
  • I updated our 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. But create-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.

IanVS added 2 commits December 7, 2022 09:46
Not all frameworks use imports from "vite" directly.
@IanVS IanVS changed the title Vite: Prepare for vite 4 Vite: Prepare for Vite 4 Dec 7, 2022
@IanVS IanVS mentioned this pull request Dec 7, 2022
3 tasks
@@ -56,8 +56,7 @@
},
"devDependencies": {
"@types/node": "^16.0.0",
"typescript": "^4.9.3",
"vite": "^3.1.3"
Copy link
Member

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?

Copy link
Contributor

@JReinhold JReinhold Dec 7, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's because some of the packages import directly from Vite (mostly just the types) while the others don't.
image

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, that's why.

Copy link
Contributor

@JReinhold JReinhold left a 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.

@IanVS
Copy link
Member Author

IanVS commented Dec 8, 2022

I've rolled this PR into #20139, there's not really a need to keep them separate.

@IanVS IanVS closed this Dec 8, 2022
@JReinhold JReinhold deleted the vite/vite-4 branch December 8, 2022 12:21
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.

3 participants