Skip to content

chore: upgrade vite to 8.x#78

Open
devin-ai-integration[bot] wants to merge 1 commit intonextfrom
devin/1774364513-upgrade-vite-8
Open

chore: upgrade vite to 8.x#78
devin-ai-integration[bot] wants to merge 1 commit intonextfrom
devin/1774364513-upgrade-vite-8

Conversation

@devin-ai-integration
Copy link
Copy Markdown

@devin-ai-integration devin-ai-integration bot commented Mar 24, 2026

Summary

Upgrades Vite from 7.x to 8.x across the monorepo. Vite 8 replaces the dual esbuild+Rollup architecture with Rolldown, a unified Rust-based bundler.

Catalog version bumps:

Package Before After
vite ^7.1.3 ^8.0.2
vitest 4.0.0-beta.8 ^4.1.1
@vitejs/plugin-react-swc ^3.11.0 ^4.3.0
@vitejs/plugin-vue ^6.0.1 ^6.0.5
@vitejs/plugin-vue-jsx ^5.0.1 ^5.1.5
@tailwindcss/vite ^4.1.12 ^4.2.2
vite-plugin-inspect 11.3.2 12.0.0-beta.1
vite-tsconfig-paths ^5.1.4 ^6.1.1

Other changes:

  • packages/react/vite.config.ts: rollupOptionsrolldownOptions (Vite 8 migration)
  • apps/www/package.json: hardcoded "vite": "^6.3.5""vite": "catalog:" for consistency
  • apps/www/astro.config.ts: Added @ts-expect-error for Astro 5 / Vite 8 plugin type mismatch (Astro 5 internally depends on Vite 6 types)

Review & Testing Checklist for Human

  • Storybook compatibility: @storybook/react-vite and @storybook/vue3-vite v8.6.x only declare vite: ^4||^5||^6 as peer deps. Verify Storybook dev servers (pnpm run dev:storybook) still work for both React and Vue packages.
  • rolldownOptions migration: Verify the React package lib build output (pnpm run build --filter=@ui/react) produces correct ESM modules with preserveModules under Rolldown — compare output structure/contents against the previous build.
  • vite-plugin-inspect is at 12.0.0-beta.1: This is the only version supporting Vite 8. Verify the inspect plugin still works in dev, or consider removing it if it causes issues.
  • Astro dev server: Run pnpm run dev for the www app and verify the documentation site works correctly — Astro 5 ships with Vite 6 internally, and having Vite 8 plugins injected may surface subtle runtime issues.

Notes

  • Lint (oxlint), typecheck (tsc + astro check), build (@ui/react), and tests all pass locally.
  • The Storybook peer dep warning was pre-existing (Storybook 8.x also didn't declare Vite 7 support, and the repo was already on Vite 7).

Link to Devin session: https://app.devin.ai/sessions/2266598ac0954e749ae2364408222e59
Requested by: @iamdin


Open with Devin

- vite: ^7.1.3 → ^8.0.2
- vitest: 4.0.0-beta.8 → ^4.1.1
- @vitejs/plugin-react-swc: ^3.11.0 → ^4.3.0
- @vitejs/plugin-vue: ^6.0.1 → ^6.0.5
- @vitejs/plugin-vue-jsx: ^5.0.1 → ^5.1.5
- @tailwindcss/vite: ^4.1.12 → ^4.2.2
- vite-plugin-inspect: 11.3.2 → 12.0.0-beta.1
- vite-tsconfig-paths: ^5.1.4 → ^6.1.1
- Migrate rollupOptions to rolldownOptions in react vite config
- Use catalog: for www vite dependency instead of hardcoded ^6.3.5
- Add ts-expect-error for Astro 5 / Vite 8 plugin type mismatch

Co-Authored-By: Kyrie Din <iamdinq@gmail.com>
@devin-ai-integration
Copy link
Copy Markdown
Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Mar 24, 2026

⚠️ No Changeset found

Latest commit: cab8e2a

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@vercel
Copy link
Copy Markdown

vercel bot commented Mar 24, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
shipbase-ui Error Error Mar 24, 2026 3:09pm

@github-actions
Copy link
Copy Markdown
Contributor

Copy link
Copy Markdown
Author

@devin-ai-integration devin-ai-integration bot left a comment

Choose a reason for hiding this comment

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

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 4 additional findings.

Open in Devin Review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant