chore(deps): update to vite 8 and latest related vite plugins#7973
chore(deps): update to vite 8 and latest related vite plugins#7973joshblack wants to merge 3 commits into
Conversation
|
|
There was a problem hiding this comment.
Pull request overview
This PR updates the repo’s Vite toolchain to Vite 8 (rolldown-powered) and aligns related Vite React plugin usage/versions across workspaces, including ensuring @primer/styled-react’s Vitest setup can correctly handle JSX-based exports.
Changes:
- Bump
viteto^8.0.16at the repo root and update lockfile accordingly. - Bump
@vitejs/plugin-reactto^6.0.2in@primer/reactand@primer/styled-react(and in the CodeSandbox example). - Add
@vitejs/plugin-reacttopackages/styled-react/vitest.config.tsto enable JSX-aware transforms in the node test config.
Show a summary per file
| File | Description |
|---|---|
packages/styled-react/vitest.config.ts |
Adds Vite React plugin to Vitest node config to support JSX transforms. |
packages/styled-react/package.json |
Updates @vitejs/plugin-react devDependency to v6. |
packages/react/package.json |
Updates @vitejs/plugin-react devDependency to v6. |
package.json |
Adds vite@^8.0.16 to root devDependencies. |
package-lock.json |
Lockfile updates for Vite 8 / plugin-react 6 and their new transitive deps (rolldown/lightningcss/etc). |
examples/codesandbox/package.json |
Updates CodeSandbox example’s Vite/tooling deps to Vite 8 + plugin-react 6. |
Copilot's findings
- Files reviewed: 5/6 changed files
- Comments generated: 1
| "turbo": "^2.6.3", | ||
| "typescript": "^6.0.3", | ||
| "typescript-eslint": "^8.59.1", | ||
| "vite": "^8.0.16", |
|
@copilot resolve the merge conflicts in this pull request |
Co-authored-by: joshblack <3901764+joshblack@users.noreply.github.com>
Head branch was pushed to by a user without write access
Resolved the merge conflicts and merged |
Update our project locally to use Vite 8 🎉 This includes the rolldown-powered version of Vite.
Changelog
New
Changed
mainand resolve merge conflicts inexamples/codesandbox/package.jsonwhile preserving the Vite 8/plugin updates and taking the latest@primer/reactversion frommainRemoved
Rollout strategy
This is an internal change to test/development dependencies.
Testing & Reviewing
npm run buildnpm testnpm run type-checknpm run lintnpm run lint:cssnpm run format:diffMerge checklist