Skip to content

fix(rolldown): make run build record sessions and exit cleanly - #609

Open
webfansplz wants to merge 1 commit into
mainfrom
fix/rolldown-recording-build
Open

webfansplz wants to merge 1 commit into
mainfrom
fix/rolldown-recording-build

Conversation

@webfansplz

Copy link
Copy Markdown
Member

Close #602

Copilot AI balanced review requested due to automatic review settings October 8, 2026 09:14

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.

🟢 Approval recommended

The environment-gated integration addresses both reported failure modes with focused regression tests.

0 open findings

What changed in this PR

Enables Rolldown-triggered builds to record sessions under apply: "serve" while avoiding a standalone server that prevents clean exit.

Changes:

  • Shares the Rolldown build environment marker through the kit.
  • Enables build instrumentation when that marker is present.
  • Skips standalone startup and adds regression coverage.
File Description
packages/​kit/​src/​constants.ts Exports the shared environment marker.
packages/​core/​src/​node/​config.ts Enables marked Rolldown builds.
packages/​core/​src/​node/​plugins/​integration.ts Prevents standalone startup for marked builds.
packages/​core/​src/​node/​__tests__/​config.test.ts Tests environment-based enablement.
packages/​core/​src/​node/​__tests__/​integration.test.ts Tests integration loading and clean exit.
packages/​rolldown/​src/​node/​plugin.ts Uses the shared marker.
packages/​rolldown/​src/​node/​rolldown/​build-runner.ts Uses the shared marker for child builds.
packages/​rolldown/​src/​node/​rolldown/​__tests__/​build-runner.test.ts Updates test imports.
test/​__snapshots__/​tsnapi/​@vitejs/​devtools-kit/​constants.snapshot.js Records the JavaScript API export.
test/​__snapshots__/​tsnapi/​@vitejs/​devtools-kit/​constants.snapshot.d.ts Records the type API export.

🧠 Review effort: Balanced


Give feedback about Copilot approvals in this survey to enter a drawing for a $150 gift card.

@pkg-pr-new

pkg-pr-new Bot commented Oct 8, 2026

Copy link
Copy Markdown

Open in StackBlitz

@vitejs/devtools

npm i https://pkg.pr.new/@vitejs/devtools@609

@vitejs/devtools-kit

npm i https://pkg.pr.new/@vitejs/devtools-kit@609

@vitejs/devtools-oxc

npm i https://pkg.pr.new/@vitejs/devtools-oxc@609

@vitejs/devtools-rolldown

npm i https://pkg.pr.new/@vitejs/devtools-rolldown@609

@vitejs/devtools-vite

npm i https://pkg.pr.new/@vitejs/devtools-vite@609

@vitejs/devtools-vitest

npm i https://pkg.pr.new/@vitejs/devtools-vitest@609

commit: 1856207

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.

Rolldown panel “Run build” records no session when devtools.apply is "serve"

2 participants