Skip to content

chore(deps): bump vite group to v8 and apply migration changes#1995

Draft
Copilot wants to merge 6 commits intodependabot/npm_and_yarn/vite-555ff24f4afrom
copilot/sub-pr-1994
Draft

chore(deps): bump vite group to v8 and apply migration changes#1995
Copilot wants to merge 6 commits intodependabot/npm_and_yarn/vite-555ff24f4afrom
copilot/sub-pr-1994

Conversation

Copy link
Contributor

Copilot AI commented Mar 13, 2026

Bumps vite 7→8, vite-node 5→6, and vitest 4.0→4.1. Applies the required Vite 8 migration: drops the vite-tsconfig-paths plugin in favour of Vite 8's native tsconfig path resolution.

Changes

  • src/vite.common.config.mts — remove vite-tsconfig-paths plugin; add resolve.tsconfigPaths: true
  • src/__tests__/vitest.config.ts — same as above for the test config
  • package.json — remove vite-tsconfig-paths from devDependencies
- import tsconfigPaths from 'vite-tsconfig-paths'
  
  defineConfig({
+   resolve: { tsconfigPaths: true },
-   plugins: [tsconfigPaths({ root: '..' })],
  })

🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.

dependabot bot and others added 2 commits March 13, 2026 21:22
Bumps the vite group with 3 updates in the / directory: [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite), [vite-node](https://github.com/antfu-collective/vite-node) and [vitest](https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest).


Updates `vite` from 7.3.1 to 8.0.0
- [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.0/packages/vite)

Updates `vite-node` from 5.3.0 to 6.0.0
- [Release notes](https://github.com/antfu-collective/vite-node/releases)
- [Commits](antfu-collective/vite-node@v5.3.0...v6.0.0)

Updates `vitest` from 4.0.18 to 4.1.0
- [Release notes](https://github.com/vitest-dev/vitest/releases)
- [Commits](https://github.com/vitest-dev/vitest/commits/v4.1.0/packages/vitest)

---
updated-dependencies:
- dependency-name: vite
  dependency-version: 8.0.0
  dependency-type: direct:development
  update-type: version-update:semver-major
  dependency-group: vite
- dependency-name: vite-node
  dependency-version: 6.0.0
  dependency-type: direct:development
  update-type: version-update:semver-major
  dependency-group: vite
- dependency-name: vitest
  dependency-version: 4.1.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: vite
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: arturcic <1760506+arturcic@users.noreply.github.com>
@arturcic
Copy link
Member

@copilot fix the build, using https://vite.dev/guide/migration from v7 to v8 for vite

…e.tsconfigPaths

Co-authored-by: arturcic <1760506+arturcic@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Mar 13, 2026

Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details.

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 changed the title [WIP] Update vite group across 1 directory with 3 updates chore(deps): bump vite group to v8 and apply migration changes Mar 13, 2026
Copilot AI requested a review from arturcic March 13, 2026 21:37
Co-authored-by: arturcic <1760506+arturcic@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Mar 13, 2026

@copilot fix the build, using https://vite.dev/guide/migration from v7 to v8 for vite

Fixed in commit 1e48815.

Vite 8 uses rolldown which changed the chunking behavior: lib.ts (shared between tools/lib and tools/cli entries) gets hoisted to dist/lib.mjs (root of dist/) instead of staying at dist/tools/lib.mjs. This broke the relative dynamic imports:

  • './${buildAgent}/agent.mjs' from dist/lib.mjs was resolving to dist/github/agent.mjs (missing)
  • Updated to './tools/${buildAgent}/agent.mjs' → correctly resolves to dist/tools/github/agent.mjs
  • Same fix for tool runner: './libs/${tool}.mjs''./tools/libs/${tool}.mjs'

Also added input validation for buildAgent and tool parameters to prevent path traversal.

@sonarqubecloud
Copy link

@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/vite-555ff24f4a branch from bb72f9b to 18c03ab Compare March 14, 2026 12:02
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.

2 participants