-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Bump vite to 4.4.6 #7746
Bump vite to 4.4.6 #7746
Conversation
🦋 Changeset detectedLatest commit: aa24751 The changes in this PR will be included in the next version bump. 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 |
@bluwy was there any reasons we weren't already on 4.4? |
Mostly that we're not using any 4.4 specific features, and users can bump to 4.4 if they want to themselves. But also, 4.4 started with quite some regressions that I initially hold off, but it's safer now. The e2e failing seems to be legit though. Might need to address that before merging, could be a Vite regression. |
I tried updating solid-js 1.7.6 -> 1.7.8 (latest), but it doesn't resolve "Circular imports with Solid › Context" test breaks in E2E. This issue appeared first in vite "4.4.0-beta.0" |
@bluwy , to debug this further, how can I as an Astro user use a custom version of Vite like you suggest? |
You can run I can try to take a look at the issue over the weekend. A bit swamped at the moment 😅 |
I found that replacing This appear a bit off-topic, so I made a separate issue for it here #7771 |
804a798
to
5752691
Compare
Turns out simply using |
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.
Thanks for fixing the tests! This make sense to me as Vite's esbuild now understand our tsconfig.json's verbatimModuleSyntax: true
config which causes the type elision to no work correctly. Not really sure if this is a Vite regression, but I'll keep watch of this.
426c9d7
to
aa24751
Compare
Rebased. Tests will pass if rerun (they were just cancelled). |
Changes
This bumps Vite to 4.4.6 (Astro is currently at 4.3.9). It includes patch bumps to all the adapters.
This brings experimental support for Lightning CSS (vite 4.4.0) and improved support for Bun (vite 4.4.6).
Two ts-expect-error flags are obsolete and removed, because Vite now use esbuild 0.18
Testing
Existing unit tests and e2e tests should still pass.
Docs
/cc @withastro/maintainers-docs for feedback!
There is currently no section on Lightning CSS.