Skip to content

chore(deps-dev): bump vite from 7.2.4 to 8.0.3#1580

Merged
domoritz merged 2 commits intomasterfrom
dependabot/npm_and_yarn/vite-8.0.3
Apr 2, 2026
Merged

chore(deps-dev): bump vite from 7.2.4 to 8.0.3#1580
domoritz merged 2 commits intomasterfrom
dependabot/npm_and_yarn/vite-8.0.3

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot Bot commented on behalf of github Apr 1, 2026

  • Identify error: @vitejs/plugin-react@5.1.2 incompatible with vite 8 (peer dep conflict)
  • Update @vitejs/plugin-react to ^6.0.0 (supports vite 8)
  • Fix build error: remove include: '**/*.{jsx,tsx,ts,js}' from react() in vite.config.ts
    • Root cause: the glob string was passed to @vitejs/plugin-react@6 which generated a jsxRefreshInclude filter that caused rolldown's builtin:vite-transform to incorrectly process JSON files as JavaScript
    • The default include in plugin-react v6 (/\.[tj]sx?$/) already covers all needed file types
  • Run npm install — succeeds, no peer dependency conflicts
  • Verify build passes: vite build — ✓ 1220 modules transformed
  • Verify tests pass: 35 unit tests pass

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Apr 1, 2026
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 7.2.4 to 8.0.3.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/main/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/create-vite@8.0.3/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-version: 8.0.3
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot force-pushed the dependabot/npm_and_yarn/vite-8.0.3 branch from dfb418c to 610a6d1 Compare April 1, 2026 18:25
@domoritz
Copy link
Copy Markdown
Member

domoritz commented Apr 2, 2026

@copilot fix the error and install the required packages. migrate what's needed

…moving glob include

Agent-Logs-Url: https://github.com/vega/editor/sessions/dfd444b2-ca9c-4a44-b12d-6f5fa44b3ebc

Co-authored-by: domoritz <589034+domoritz@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 2, 2026

@copilot fix the error and install the required packages. migrate what's needed

Fixed in f4d2b85. Two changes were needed:

  1. Updated @vitejs/plugin-react from ^5.1.2 to ^6.0.0 — v5.x doesn't support vite 8 (peer dep conflict).

  2. Removed include: '**/*.{jsx,tsx,ts,js}' from react() in vite.config.ts — In @vitejs/plugin-react@6 with vite 8/rolldown, passing a glob string as include causes it to be used as the OXC transform's jsxRefreshInclude filter. This made rolldown's builtin:vite-transform incorrectly parse JSON files as JavaScript, causing build failures. The default include in plugin-react v6 (/\.[tj]sx?$/) already covers .js, .ts, .jsx, .tsx files.

Build now succeeds with 1220 modules transformed and all 35 unit tests pass.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • vite.dev
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Copilot AI requested a review from domoritz April 2, 2026 16:45
@domoritz domoritz merged commit da044be into master Apr 2, 2026
4 checks passed
@domoritz domoritz deleted the dependabot/npm_and_yarn/vite-8.0.3 branch April 2, 2026 18:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants