Repository navigation
Conversation
…ient files React Router writes the Subresource Integrity hashes of the client files during the server build, before `buildEnd` runs. `sentryOnBuildEnd` injected the debug IDs with the CLI after that, so the shipped files no longer matched their hashes and browsers blocked them. The Vite plugin now injects the debug IDs during the build. The CLI inject in `sentryOnBuildEnd` leaves files that already carry a debug ID unchanged, and `sentryOnBuildEnd` still uploads and deletes the maps.
Contributor
size-limit report 📦Compared: fc09f25 (PR test merge using develop at 19c4139) Against: 19c4139 (develop) · base run #68368 ✅ Baseline matches: this diff contains only this PR's changes.
|
Contributor
Optional E2E testsAll optional checks were successful. 1 successful. See the run. Successful checks
|
With `delete: false`, the Vite plugin turned hidden source maps on when the build had none, for example with only `sourcemaps.upload: false`. `makeEnableSourceMapsPlugin` leaves the maps off in that case, and nothing deleted them, so they shipped. `sdkDeleteSourceMaps: false` keeps the plugin from changing the source map setting at all.
timfish
marked this pull request as ready for review
November 30, 2026 16:53
javascript-sdk-gitflow
Bot
requested review from
chargome,
maxcell and
s1gr1d
November 30, 2026 16:53
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.
subResourceIntegrity: true, React Router hashes the client files beforebuildEndruns.sentryOnBuildEndthen injected debug IDs with the CLI, so the files no longer matched their hashes and browsers blocked them.sentryOnBuildEndstill uploads and deletes the maps, and its CLI inject leaves files that already carry a debug ID unchanged, so each chunk still gets one debug ID ([react-router] Anyunstable_sentryVitePluginOptions.sourcemapsvalue re-enables double debug ID injection (regression of #19874) #22929).react-router-8-sourcemapsnow turns onsubResourceIntegrityand checks every SRI hash against the client files in all three variants. Without the fix, the check fails.sentryOnBuildEndnow also get debug IDs injected, though nothing uploads their maps.