Repository navigation
Preserve build errors when closeBundle fails - #6554
Merged
lukastaegert merged 3 commits intoOct 7, 2026
Merged
Conversation
|
@Jo2234 is attempting to deploy a commit to the rollup-js Team on Vercel. A member of the Team first needs to authorize it. |
Jo2234
force-pushed
the
fix/preserve-build-error-on-cleanup
branch
from
October 5, 2026 02:36
cb5434f to
0586b12
Compare
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #6554 +/- ##
=======================================
Coverage 98.29% 98.29%
=======================================
Files 378 378
Lines 13728 13728
Branches 2920 2920
=======================================
Hits 13494 13494
Misses 191 191
Partials 43 43 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
…d-error-on-cleanup
4 of 9 tasks
lukastaegert
enabled auto-merge
October 7, 2026 15:17
Performance report
|
|
This PR has been released as part of [email protected]. You can test it via |
4 tasks done
graphite-app Bot
pushed a commit
to rolldown/rolldown
that referenced
this pull request
Nov 20, 2026
Partial implementation of rollup/rollup#6554. The behavior of `closeBundle` seems to be different, but fixing that seems to require changing many codes around [`Bundle.close`](https://github.com/rolldown/rolldown/blob/main/internal-docs/rust-bundler/implementation.md#bundlehandleclose--design-decision) so I left it for now.
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains:
Are tests included?
Breaking Changes?
List any relevant issue numbers:
Description
When a build or buildEnd hook fails and closeBundle also rejects, cleanup currently replaces the original build diagnostic. This awaits cleanup and preserves the original or existing compound error across all three failed-build paths, including its plugin and source metadata. Standalone bundle.close() errors continue to propagate.
Five function fixtures cover the three affected paths, successful cleanup after a build failure, and a standalone close failure. The three regression cases fail before the fix; all five pass afterward. The plugin documentation now states the precedence.
Validation
generated with AI