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

Update vite and vite-node, support Vite 6, drop support for Vite 4 #1529

Merged
merged 9 commits into from
Jan 30, 2025

Conversation

askoufis
Copy link
Contributor

@askoufis askoufis commented Jan 23, 2025

Fixes #1509. Resolves #1520. Closes #1508 (superseded by this PR).

Changes

vite, vite-node, vitest and vite-tsconfig-paths have all been updated. vite-node@3 dropped support for for Vite 4, so we have done the same. vite-tsconfig-paths is now ESM-only so needs to be dynamically imported (even though we're running ESM jest tests).

I've implemented a workaround for vitejs/vite#19245 in the compiler. This only necessary to fix a bug when running the compiler inside jest, which is probably only relevant for the tests in this repo. I doubt there are many vite (and hence compiler) consumers not using vitest, let alone actually testing the compiler. The workaround should have no effect on the compiler's functionality.

EDIT: Looks like my fix for the bug will be released in vite 6.1.0. Will keep the workaround code around until that's released.

The update to the rollup plugin snapshot was likely a result of updating some rollup-related deps as part of the lockfile dedupe commit 0325c1c.

Copy link

changeset-bot bot commented Jan 23, 2025

🦋 Changeset detected

Latest commit: 166e8ad

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

This PR includes changesets to release 9 packages
Name Type
@vanilla-extract/integration Patch
@vanilla-extract/vite-plugin Major
@vanilla-extract/compiler Patch
@vanilla-extract/esbuild-plugin Patch
@vanilla-extract/jest-transform Patch
@vanilla-extract/parcel-transformer Patch
@vanilla-extract/rollup-plugin Patch
@vanilla-extract/webpack-plugin Patch
@vanilla-extract/next-plugin Patch

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

@ancashoria
Copy link

Oh man, I can't wait for this. I'm moving from Next to Astro and this is the only thing blocking me.

@askoufis askoufis merged commit d5b6e70 into master Jan 30, 2025
11 checks passed
@askoufis askoufis deleted the update-vite branch January 30, 2025 00:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants