Skip to content

fix(build): adapt to Vite 8/rolldown chunking behavior#1996

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

fix(build): adapt to Vite 8/rolldown chunking behavior#1996
Copilot wants to merge 4 commits intodependabot/npm_and_yarn/vite-555ff24f4afrom
copilot/sub-pr-1994-again

Conversation

Copy link
Contributor

Copilot AI commented Mar 13, 2026

Vite 8 (rolldown) extracts shared code between multiple entry points into a root-level chunk. With both tools/lib and tools/cli as entries sharing lib.ts, rolldown placed the actual code in dist/lib.mjs (root), making dist/tools/lib.mjs a thin re-export. This broke the dynamic imports in lib.ts:

// dist/lib.mjs (root) resolved agents relative to dist/, not dist/tools/
import(`./${buildAgent}/agent.mjs`)  // → dist/github/agent.mjs ❌
                                      // expected dist/tools/github/agent.mjs

Changes

  • Split build:tools into two sequential builds

    • build:tools:libtools/lib + tool runners only; single-purpose entries prevent rolldown from extracting a shared chunk, so dist/tools/lib.mjs is the actual code again
    • build:tools:clitools/cli as a standalone single-entry bundle with lib.ts inlined
  • New src/tools/vite.config.cli.mts for the CLI-only build

  • dist/azure/manifest.config.cjs — add rolldown-runtime.mjs to packaged files; Vite 8/rolldown generates this new file for CJS→ESM conversion (required by semver)


📍 Connect Copilot coding agent with Jira, Azure Boards or Linear to delegate work to Copilot in one click without leaving your project management tool.

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>
Copilot AI and others added 2 commits March 13, 2026 21:48
Co-authored-by: arturcic <1760506+arturcic@users.noreply.github.com>
… issue

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

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 fix(build): adapt to Vite 8/rolldown chunking behavior Mar 13, 2026
Copilot AI requested a review from arturcic March 13, 2026 22:00
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/vite-555ff24f4a branch 17 times, most recently from f0b6369 to df5ce2e Compare March 18, 2026 17:26
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/vite-555ff24f4a branch from df5ce2e to a5b13de Compare March 18, 2026 17:57
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