Repository navigation
Conversation
Contributor
size-limit report 📦Compared: 23b669a (PR test merge using develop at 73e928a) Against: 73e928a (develop) · base run #65941 ✅ Baseline matches: this diff contains only this PR's changes.
|
Contributor
Optional E2E testsSome optional checks were not successful. They do not block the merge. 4 not successful, 55 successful. See the run.
Successful checks
|
esbuild inlines an imported constant only after its dead-code pass, so guards on the imported `DEBUG_BUILD` survived `__SENTRY_DEBUG__: false`. The npm build now drops the import and defines `DEBUG_BUILD` as the flag expression at every use site.
logaretm
force-pushed
the
awad/esbuild-debug-build-dce
branch
from
November 13, 2026 09:44
48706b1 to
8aaff5b
Compare
This branch has not been 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.
esbuild kept debug-only code under
__SENTRY_DEBUG__: falsebecause it inlines the importedDEBUG_BUILDtoo late, fixed by inlining the flag at every use site in the npm build.I added an esbuild size-limit entry with
__SENTRY_DEBUG__: falseso we notice if this regresses.closes #26140