Skip to content

feat(remix): Add Remix 3 export subpaths and optional peer deps - #24697

Open
chargome wants to merge 1 commit into
developfrom
charlygomez/js-3765-add-remix-3-export-subpaths-and-optional-peer-deps
Open

chargome wants to merge 1 commit into
developfrom
charlygomez/js-3765-add-remix-3-export-subpaths-and-optional-peer-deps

Conversation

@chargome

@chargome chargome commented Sep 24, 2026 •

Copy link
Copy Markdown
Member

Prepares @sentry/remix to hold Remix 3 support. No instrumentation yet, the v3 entries are placeholders.

  • All peer deps are now optional, and remix is added as one. They were required, so npm would install React and @remix-run/node into a Remix 3 app.
  • Three ESM-only subpaths: ./v3, ./v3/client, ./v3/node. Remix 3's asset server rejects CommonJS, so a require condition could never load.
  • engines is unchanged, because remix already requires Node 24.3 or newer.
  • The remix peer is >=3.0.0-rc.1 <4, not 3.x. Semver ranges exclude prereleases, so 3.x would not match the release candidate the alpha targets.
  • ./v3/client does not yet export init
  • preserveModulesRoot: 'src' is needed or the v3 entries land outside build/esm/v3/. A clean-build diff confirms it moves nothing else.

Not addressed here: React still arrives transitively via @sentry/react, and CJS output ships unreferenced for the v3 entries.

The e2e app is stacked on top in #24698.

Fixes #24662

@chargome chargome self-assigned this Sep 24, 2026
@chargome

Copy link
Copy Markdown
Member Author

bugbot run

@linear-code

linear-code Bot commented Sep 24, 2026

Copy link
Copy Markdown

JS-3765

@cursor cursor Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale Bugbot comment from a previous run.

Comment thread packages/remix/package.json
Comment thread packages/remix/src/v3/index.client.ts
@chargome
chargome force-pushed the charlygomez/js-3765-add-remix-3-export-subpaths-and-optional-peer-deps branch from f21dd5e to 95e9e36 Compare September 24, 2026 12:42
@chargome
chargome added this pull request to stack #24699 September 24, 2026 12:42
Prepares @sentry/remix to hold Remix 3 support. No instrumentation yet,
the v3 entries are placeholders.

Fixes #24662

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@chargome
chargome force-pushed the charlygomez/js-3765-add-remix-3-export-subpaths-and-optional-peer-deps branch from 95e9e36 to 3479f10 Compare September 24, 2026 12:49
@chargome

Copy link
Copy Markdown
Member Author

bugbot run

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit 3479f10. Configure here.

@github-actions

Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size % Change Change
@sentry/browser 29.24 kB - -
@sentry/browser - with treeshaking flags 27.5 kB - -
@sentry/browser - with treeshaking flags tracing without tracing 27.4 kB - -
@sentry/browser (incl. Tracing) 51.15 kB - -
@sentry/browser (incl. Tracing + Span Streaming) 51.17 kB - -
@sentry/browser (incl. Tracing, Profiling) 54.18 kB - -
@sentry/browser (incl. Tracing, Replay) 90.76 kB - -
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 79.86 kB - -
@sentry/browser (incl. Tracing, Replay with Canvas) 95.46 kB - -
@sentry/browser (incl. Tracing, Replay, Feedback) 108.41 kB - -
@sentry/browser (incl. Feedback) 46.76 kB - -
@sentry/browser (incl. sendFeedback) 34.3 kB - -
@sentry/browser (incl. FeedbackAsync) 39.41 kB - -
@sentry/browser (incl. Metrics) 30.25 kB - -
@sentry/browser (incl. Logs) 30.51 kB - -
@sentry/browser (incl. Metrics & Logs) 31.18 kB - -
@sentry/react 31 kB - -
@sentry/react (incl. Tracing) 53.45 kB - -
@sentry/vue 36.74 kB - -
@sentry/vue (incl. Tracing) 53.7 kB - -
@sentry/svelte 29.26 kB - -
CDN Bundle 30.93 kB - -
CDN Bundle (incl. Tracing) 51.69 kB - -
CDN Bundle (incl. Logs, Metrics) 33.2 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) 53.66 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) 73.92 kB - -
CDN Bundle (incl. Tracing, Replay) 89.28 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 91.25 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) 95.45 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 97.42 kB - -
CDN Bundle - uncompressed 91.4 kB - -
CDN Bundle (incl. Tracing) - uncompressed 153.77 kB - -
CDN Bundle (incl. Logs, Metrics) - uncompressed 97.97 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 159.73 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 227.54 kB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 273.5 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 279.44 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 287.2 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 293.13 kB - -
@sentry/nextjs (client) 55.77 kB - -
@sentry/sveltekit (client) 51.59 kB - -
@sentry/core/server 39.95 kB - -
@sentry/core/browser 13.63 kB - -
@sentry/node 133.88 kB +0.01% +6 B 🔺
@sentry/node/import (ESM hook with diagnostics-channel injection) 82.4 kB - -
@sentry/node - without tracing 90.43 kB +0.02% +16 B 🔺
@sentry/node - without channel injection 112.42 kB +0.01% +11 B 🔺
@sentry/aws-serverless 98.7 kB +0.01% +8 B 🔺
@sentry/cloudflare (withSentry) - minified 206.49 kB - -
@sentry/cloudflare (withSentry) 513.73 kB - -

View base workflow run

@chargome
chargome marked this pull request as ready for review September 24, 2026 13:11
@chargome
chargome requested a review from a team as a code owner September 24, 2026 13:12
@chargome
chargome requested review from nicohrubec and s1gr1d and removed request for a team September 24, 2026 13:12

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Remix 3 export subpaths and optional peer deps

1 participant