Skip to content

fix(v10/bundler-plugins): Inject the release only into chunks that load at startup - #25695

Merged
nicohrubec merged 3 commits into
v10from
feat/v10-backport-25541-release-injection
Oct 24, 2026
Merged

nicohrubec merged 3 commits into
v10from
feat/v10-backport-25541-release-injection

Conversation

@nicohrubec

@nicohrubec nicohrubec commented Oct 23, 2026 •

Copy link
Copy Markdown
Member

Backport of: #25541

Differences to the original PR

  • Applied webpack's initial-chunk check in v10's webpack4and5.ts BannerPlugin callback instead of v11's webpack-only implementation. This retains webpack 4 compatibility; release injection is restricted using the same chunk.canBeInitial() check, while debug IDs and module metadata remain per chunk.
  • Kept the v10 core-test imports, which do not include v11's Oxc annotation helper.
  • Added a max-lines lint suppression to the Rollup implementation because this change takes the existing file over v10's 300-line limit.
  • Guarded the Rolldown regression on Node 18 and moved its import inside the test, matching v10's existing test pattern. The Rollup regression still runs on Node 18.

…ad at startup

Backport of: #25541

Co-Authored-By: GPT-6 <codex@openai.com>
@nicohrubec
nicohrubec force-pushed the feat/v10-backport-25541-release-injection branch from 0f8c793 to 400b826 Compare October 23, 2026 10:34
@nicohrubec
nicohrubec marked this pull request as ready for review October 23, 2026 10:41
@nicohrubec
nicohrubec requested review from isaacs and timfish October 23, 2026 10:41
@github-actions

github-actions Bot commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size % Change Change
@sentry/browser 28.28 kB added added
@sentry/browser - with treeshaking flags 26.73 kB added added
@sentry/browser (incl. Tracing) 47.3 kB added added
@sentry/browser (incl. Tracing + Span Streaming) 49.1 kB added added
@sentry/browser (incl. Tracing, Profiling) 52.09 kB added added
@sentry/browser (incl. Tracing, Replay) 86.75 kB added added
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 76.38 kB added added
@sentry/browser (incl. Tracing, Replay with Canvas) 91.46 kB added added
@sentry/browser (incl. Tracing, Replay, Feedback) 104.08 kB added added
@sentry/browser (incl. Feedback) 45.45 kB added added
@sentry/browser (incl. sendFeedback) 33.09 kB added added
@sentry/browser (incl. FeedbackAsync) 38.21 kB added added
@sentry/browser (incl. Metrics) 29.38 kB added added
@sentry/browser (incl. Logs) 29.61 kB added added
@sentry/browser (incl. Metrics & Logs) 30.3 kB added added
@sentry/react 30.1 kB added added
@sentry/react (incl. Tracing) 49.6 kB added added
@sentry/vue 34.17 kB added added
@sentry/vue (incl. Tracing) 49.68 kB added added
@sentry/svelte 28.31 kB added added
CDN Bundle 30.69 kB added added
CDN Bundle (incl. Tracing) 49.25 kB added added
CDN Bundle (incl. Logs, Metrics) 32.28 kB added added
CDN Bundle (incl. Tracing, Logs, Metrics) 50.57 kB added added
CDN Bundle (incl. Replay, Logs, Metrics) 71.75 kB added added
CDN Bundle (incl. Tracing, Replay) 86.99 kB added added
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 88.27 kB added added
CDN Bundle (incl. Tracing, Replay, Feedback) 92.8 kB added added
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 94.08 kB added added
CDN Bundle - uncompressed 91.2 kB added added
CDN Bundle (incl. Tracing) - uncompressed 148.46 kB added added
CDN Bundle (incl. Logs, Metrics) - uncompressed 95.91 kB added added
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 152.44 kB added added
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 221.4 kB added added
CDN Bundle (incl. Tracing, Replay) - uncompressed 268.43 kB added added
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 272.39 kB added added
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 282.13 kB added added
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 286.08 kB added added
@sentry/nextjs (client) 52.25 kB added added
@sentry/sveltekit (client) 47.75 kB added added
@sentry/core/server 81.66 kB added added
@sentry/core/browser 67.73 kB added added
@sentry/node-core 64.1 kB added added
@sentry/node 127.28 kB added added
@sentry/node (incl. diagnostics channel injection) 171.48 kB added added
@sentry/node/import (ESM hook with diagnostics-channel injection) 166 B added added
@sentry/node/light 52.2 kB added added
@sentry/node - without tracing 75.89 kB added added
@sentry/aws-serverless 85.04 kB added added
@sentry/cloudflare (withSentry) - minified 204.93 kB added added
@sentry/cloudflare (withSentry) 505.2 kB added added

@nicohrubec
nicohrubec enabled auto-merge (squash) October 24, 2026 07:48
@nicohrubec
nicohrubec merged commit d08a8ed into v10 Oct 24, 2026
943 of 948 checks passed
@nicohrubec
nicohrubec deleted the feat/v10-backport-25541-release-injection branch October 24, 2026 14:49
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.

2 participants