Skip to content

feat(rolldown): show build error output in run build dialog - #643

Merged
webfansplz merged 1 commit into
mainfrom
feat/rolldown-build-error-output
Nov 18, 2026
Merged

webfansplz merged 1 commit into
mainfrom
feat/rolldown-build-error-output

Conversation

@webfansplz

@webfansplz webfansplz commented Nov 18, 2026 •

Copy link
Copy Markdown
Member

When Run build with devtools fails, the dialog only says the build exited with a non-zero code. To find out why, for example a misconfigured project or a missing dependency, you have to open the Terminals panel and look for the build session.

This PR shows the reason directly in the dialog:

  • On failure, the dialog shows the last 20 lines of the build output in a scrollable monospace block, with ANSI escape codes removed.
  • The output comes from the build's existing terminal session buffer, with the captured stdout/stderr as a fallback. No extra log collection is added.
  • When output is shown, the "exited with code N" line is hidden since the output already explains the failure. It stays as a fallback when there is no output.
  • View in terminals is unchanged for the full log.

Successful builds behave as before.

Copilot AI balanced review requested due to automatic review settings November 18, 2026 08:13

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.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@pkg-pr-new

pkg-pr-new Bot commented Nov 18, 2026

Copy link
Copy Markdown

Open in StackBlitz

@vitejs/devtools

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

@vitejs/devtools-kit

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

@vitejs/devtools-oxc

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

@vitejs/devtools-rolldown

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

@vitejs/devtools-vite

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

@vitejs/devtools-vitest

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

commit: bc1c745

@webfansplz
webfansplz merged commit 51c3924 into main Nov 18, 2026
10 checks passed
@webfansplz
webfansplz deleted the feat/rolldown-build-error-output branch November 18, 2026 09:33
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