Repository navigation
Conversation
… deleteArtifacts When sourcemap deletion after upload fails, report the failed map as an error and propagate the failure to the error handler rather than silently swallowing it. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
What causes this? |
|
In practice, the two main cases where
For context on why this path behaved differently from |
|
Our bundler plugins should not disrupt users' builds. We've received countless complaints when they did some time ago so I don't think we should walk back on this based on a claim that doesn't deliver an actual reproduction, but rather a synthetic scenario where this happens. Going to close this PR for the moment as we'll also likely close the issue. |
What
Reports each source map that could not be deleted after upload as an error and propagates the failure to the configured error handler, matching
deleteFromOutput.Why
deleteArtifactspreviously swallowed allfs.promises.rmerrors withlogger.debug, allowing builds to exit successfully even when permission or filesystem errors prevented source maps from being deleted from disk.Closes: #26960