Skip to content

feat(bundler-plugins): Move individual bundler plugin packages - #25095

Merged
Lms24 merged 19 commits into
developfrom
feat/legacy-bundler-plugin-packages
Oct 13, 2026
Merged

Lms24 merged 19 commits into
developfrom
feat/legacy-bundler-plugin-packages

Conversation

@timfish

@timfish timfish commented Oct 6, 2026

Copy link
Copy Markdown
Collaborator

Move the four wrapper packages from sentry-javascript-bundler-plugins into packages/legacy. Each one re-exports the matching @sentry/bundler-plugins subpath and now releases in lockstep with the SDK.

…sbuild plugins

Move the four wrapper packages from sentry-javascript-bundler-plugins into packages/legacy. Each one re-exports the matching @sentry/bundler-plugins subpath and now releases in lockstep with the SDK.
@timfish
timfish marked this pull request as ready for review October 6, 2026 12:12
@timfish
timfish requested a review from Lms24 October 6, 2026 12:12
Comment thread packages/esbuild-plugin/src/index.ts

@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 package.json Outdated
@github-actions

github-actions Bot commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size % Change Change
@sentry/browser 29.83 kB - -
@sentry/browser - with treeshaking flags 27.96 kB - -
@sentry/browser - with treeshaking flags tracing without tracing 27.87 kB - -
@sentry/browser (incl. Tracing) 52.02 kB - -
@sentry/browser (incl. Tracing + Span Streaming) 52.02 kB - -
@sentry/browser (incl. Tracing, Profiling) 54.96 kB - -
@sentry/browser (incl. Tracing, Replay) 91.75 kB - -
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 80.62 kB - -
@sentry/browser (incl. Tracing, Replay with Canvas) 96.47 kB - -
@sentry/browser (incl. Tracing, Replay, Feedback) 109.43 kB - -
@sentry/browser (incl. Feedback) 47.35 kB - -
@sentry/browser (incl. sendFeedback) 34.89 kB - -
@sentry/browser (incl. FeedbackAsync) 40 kB - -
@sentry/browser (incl. Metrics) 30.85 kB - -
@sentry/browser (incl. Logs) 31.13 kB - -
@sentry/browser (incl. Metrics & Logs) 31.78 kB - -
@sentry/react 31.64 kB - -
@sentry/react (incl. Tracing) 54.34 kB - -
@sentry/vue 37.98 kB - -
@sentry/vue (incl. Tracing) 54.95 kB - -
@sentry/svelte 29.86 kB - -
@sentry/remix (Remix 3 client bundle) 57.02 kB - -
CDN Bundle 31.56 kB - -
CDN Bundle (incl. Tracing) 52.52 kB - -
CDN Bundle (incl. Logs, Metrics) 33.77 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) 54.46 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) 74.7 kB - -
CDN Bundle (incl. Tracing, Replay) 90.19 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 92.11 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) 96.34 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 98.28 kB - -
CDN Bundle - uncompressed 92.98 kB - -
CDN Bundle (incl. Tracing) - uncompressed 155.83 kB - -
CDN Bundle (incl. Logs, Metrics) - uncompressed 99.52 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 161.79 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 229.56 kB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 276 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 281.94 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 289.7 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 295.63 kB - -
@sentry/nextjs (client) 56.75 kB - -
@sentry/sveltekit (client) 52.41 kB - -
@sentry/core/server 40.99 kB - -
@sentry/core/browser 13.81 kB - -
@sentry/node 151.97 kB +0.01% +7 B 🔺
@sentry/node/import (ESM hook with diagnostics-channel injection) 83.78 kB - -
@sentry/node - without tracing 94.54 kB +0.01% +4 B 🔺
@sentry/node - without channel injection 130.14 kB +0.01% +7 B 🔺
@sentry/aws-serverless 102.69 kB +0.01% +5 B 🔺
@sentry/cloudflare (withSentry) - minified 210.38 kB - -
@sentry/cloudflare (withSentry) 521.61 kB - -
@sentry/nextjs/cloudflare (withSentry) - minified 228.06 kB - -

View base workflow 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.

Stale Bugbot comment from a previous run.

Comment thread .github/workflows/build.yml Outdated
Comment thread packages/esbuild-plugin/test/index.test.ts

@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 package.json Outdated

@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/legacy/esbuild-plugin/package.json Outdated

@Lms24 Lms24 left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We should add a changelog entry that this release bumps the four packages from 5.4.1 to 11.6.0 (?) and what the breaking changes are. I believe mostly just that the new minimum self hosted version requirement is now higher. I don't think anything else is breaking but if there is, let's include it as well in the changelog.

EDIT: Also the min Node version is now 20.19.0
EDIT 2: webpack min version is now 5.1.0 (I think)

As for the concrete self-hosted version, this is a bit weird because no one seems to know which self-hosted version the new CLI actually requires as a minimum. For v11, we added [26.4.2(https://docs.sentry.io/platforms/javascript/migration/v10-to-v11/#:~:text=Version%2011%20of%20the%20SDK%20requires%20Sentry%20self%2Dhosted%2026.4.2%20or%20higher) as the minimum version. AFAIK, the CLI team said the actual minimum is some 25.x version but not which one 🙃 Let me get back on the exact version.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This just reminded me: did we migrate the options documentation for the new packages? Right now, I think https://www.npmjs.com/package/@sentry/vite-plugin is the only place where all plugin options are documented. Unless we already took care of this when we added @sentry/bundler-plugins to the repo?

If not, I'd say the cheapest thing we can do is add the options table to the readme of the legacy and probably also of the new package. WDYT?

@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 dev-packages/e2e-tests/lib/packedTarballUtils.ts Outdated
@timfish
timfish requested a review from Lms24 October 8, 2026 10:49

@Lms24 Lms24 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I understand the intention of moving the packages into a legacy sub dir, but IMHO this creates the need for more changes than if we just add them like regular packages.

For example, if we stick with the sub dir, we need to further adjust

  • CACHED_DEPEDNENCY_PATHS in canary.yml
  • clean:deps package.json script

I'd slightly tend towards setting them like regular packages, just to reduce a bit of complexity. Also allows us to get rid of a couple of extra changes. WDYT?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

FYI/Note to myself: just talked to @JPeer264 and we'll include a special note in all plugin packages LICENSE files about the new sentry CLI package not being MIT licensed. Currently this is only on the main repo's LICENSE, so we'll do this in one go, after merging this PR.

@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.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Want reviews to match your repository better? Bugbot Learning can learn team-specific rules from PR activity. A team admin can enable Learning in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 8e18de3. Configure here.

Comment thread .github/workflows/build.yml

@Lms24 Lms24 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for adjusting!

@Lms24
Lms24 merged commit 73e13ac into develop Oct 13, 2026
370 checks passed
@Lms24
Lms24 deleted the feat/legacy-bundler-plugin-packages branch October 13, 2026 15:16
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