Skip to content

chore(deps): update to vite 8 and latest related vite plugins#7973

Open
joshblack wants to merge 1 commit into
mainfrom
deps/update-to-vite-8
Open

chore(deps): update to vite 8 and latest related vite plugins#7973
joshblack wants to merge 1 commit into
mainfrom
deps/update-to-vite-8

Conversation

@joshblack

Copy link
Copy Markdown
Member

Update our project locally to use Vite 8 🎉 This includes the rolldown-powered version of Vite.

Changelog

New

Changed

  • Update codesandbox to use latest vite deps
  • Update react to use latest vite deps
  • Update styled-react to use latest vite deps
  • Update test config for styled-react so that it can resolve exports with JSX

Removed

Rollout strategy

  • None; if selected, include a brief description as to why

This is an internal change to test dependencies

Copilot AI review requested due to automatic review settings June 11, 2026 16:45
@joshblack joshblack requested a review from a team as a code owner June 11, 2026 16:45
@joshblack joshblack requested a review from siddharthkp June 11, 2026 16:45
@changeset-bot

changeset-bot Bot commented Jun 11, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 60a4da7

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.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

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

@github-actions github-actions Bot added staff Author is a staff member integration-tests: recommended This change needs to be tested for breaking changes. See https://arc.net/l/quote/tdmpakpm labels Jun 11, 2026
@github-actions

Copy link
Copy Markdown
Contributor

⚠️ Action required

👋 Hi, this pull request contains changes to the source code that github/github-ui depends on. If you are GitHub staff, test these changes with github/github-ui using the integration workflow. Check the integration testing docs for step-by-step instructions. Or, apply the integration-tests: skipped manually label to skip these checks.

To publish a canary release for integration testing, apply the Canary Release label to this PR.

@joshblack joshblack added skip changeset This change does not need a changelog integration-tests: skipped manually Changes in this PR do not require an integration test labels Jun 11, 2026
@joshblack joshblack enabled auto-merge June 11, 2026 16:46

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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 vite to ^8.0.16 at the repo root and update lockfile accordingly.
  • Bump @vitejs/plugin-react to ^6.0.2 in @primer/react and @primer/styled-react (and in the CodeSandbox example).
  • Add @vitejs/plugin-react to packages/styled-react/vitest.config.ts to 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

Comment thread package.json
"turbo": "^2.6.3",
"typescript": "^6.0.3",
"typescript-eslint": "^8.59.1",
"vite": "^8.0.16",
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

integration-tests: recommended This change needs to be tested for breaking changes. See https://arc.net/l/quote/tdmpakpm integration-tests: skipped manually Changes in this PR do not require an integration test skip changeset This change does not need a changelog staff Author is a staff member

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants