Repository navigation
Conversation
isaacs
marked this pull request as ready for review
December 5, 2026 22:33
Member
Author
|
@sentry-junior review |
Contributor
size-limit report 📦Compared: 2688388 (PR test merge using develop at 82e7035) Against: 82e7035 (develop) · base run #68938 ✅ Baseline matches: this diff contains only this PR's changes.
|
javascript-sdk-gitflow
Bot
requested review from
chargome,
nicohrubec and
s1gr1d
December 5, 2026 22:36
Contributor
There was a problem hiding this comment.
For the human reviewer
- Should
workeralso go beforebrowser, as in@sentry/sveltekitand@sentry/astro? It changes what a bundler that setsworker+browserbut notworkerdgets. (Product decision. This matches@sentry/react-router.) - In Worker code,
initfrom a bare@sentry/remixis now@sentry/react'sinit, not the Remix clientinit. Is that fine for Workers? (Product behavior. The new test only compares names.)
via automation evt_52a45f04059663f571b32c1cdd03c767 · Run ID dispatch_a27b3a6722661df8ab86ecb510cba741.
Cloudflare bundlers set the `workerd`, `worker` and `browser` conditions, and the first matching key wins. The root export of `@sentry/remix` listed `browser` before `worker`, so a bare `@sentry/remix` import in Worker code resolved to the client build. A `workerd` key now comes first and resolves the Cloudflare entry, as #24866 did for `@sentry/react-router`. Client bundles never set `workerd`, so nothing else changes. The Cloudflare entry now also exports `captureRemixServerException`. It was the one name the client build exported that the Cloudflare entry did not, so an app importing it in Worker code would fail to build after this change. Tests resolve a bare `@sentry/remix` with Node's resolver and the conditions Cloudflare sets, and check that the Cloudflare entry exports every name the client entry does. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
isaacs
force-pushed
the
fix/remix-workerd-entry
branch
from
December 5, 2026 22:51
25bec5f to
e772c4b
Compare
Member
Author
|
On the two questions for the human reviewer:
|
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.
Cloudflare bundlers set the
workerd,workerandbrowserconditions,and the first matching key wins. The root export of
@sentry/remixlisted
browserbeforeworker, so a bare@sentry/remiximport inWorker code resolved to the client build. A
workerdkey now comesfirst and resolves the Cloudflare entry, as #24866 did for
@sentry/react-router. Client bundles never setworkerd, so nothingelse changes.
The Cloudflare entry now also exports
captureRemixServerException. Itwas the one name the client build exported that the Cloudflare entry
did not, so an app importing it in Worker code would fail to build
after this change. Tests resolve a bare
@sentry/remixwith Node'sresolver and the conditions Cloudflare sets, and check that the
Cloudflare entry exports every name the client entry does.
Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com