Skip to content

fix(bundler-plugins): integration with monorepo#21342

Open
isaacs wants to merge 737 commits into
developfrom
feat/merge-in-sentry-javascript-bundler-plugins
Open

fix(bundler-plugins): integration with monorepo#21342
isaacs wants to merge 737 commits into
developfrom
feat/merge-in-sentry-javascript-bundler-plugins

Conversation

@isaacs
Copy link
Copy Markdown
Member

@isaacs isaacs commented Jun 4, 2026

Note: the commit log in this PR is ridiculous, because it intentionally preserves the history of the sentry-javascript-bundler-plugins repo. Probably best to review locally. Attempting to do a rebase or squash merge will probably break GitHub and maybe the world 😅

Integrate the newly merged in @sentry/bundler-plugins project to the
sentry-javascript monorepo.

  • Integration tests are updated to use the named submodule exports on
    the @sentry/bundler-plugins package, rather than the per-platform
    re-export shims.
  • Lint and naming conventions brought in line with project standards.
  • Bundler-plugins integration tests now run on CI.

The version has not been updated from its independent 5.x line, though
it may be a good idea to bump it up to align with the 10.x line that the
rest of the monorepo uses.

Luca Forstner and others added 30 commits January 9, 2025 13:24
Co-authored-by: Luca Forstner <luca.forstner@sentry.io>
…ludeTracing` (#644)

Co-authored-by: Luca Forstner <luca.forstner@sentry.io>
Revert the default behaviour of the webpack plugin to no longer exit the process. Instead, users can set an experimental flag to force exiting the process.
…terUpload` (#677)

Widen the accepted type for `filesToDeleteAfterSourcemaps` to allow us (as well as users) to pass in a `Promise<string | string[]>` to do so. This promise can resolve whenever we know what to set and we await the promise before calling `glob` to get all file paths to delete.
Update changelog for 3.2.0
andreiborza and others added 21 commits April 29, 2026 06:50
* feat(babel): Auto-inject sentry-label from static text children

Add opt-in `autoInjectSentryLabel` option to the Babel component annotate
plugin. When enabled, the plugin extracts static text from JSX children
(up to 3 levels deep) and injects a `sentry-label` attribute on the root
element. This gives React Native apps meaningful touch breadcrumb labels
without manual annotation.

Closes getsentry/sentry-react-native#6098

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* refactor(babel): Combine autoInjectSentryLabel and textComponentNames into single option

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix(babel): Extract text from non-text wrapper elements inside text components

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix(babel): Guard against null in autoInjectSentryLabel and restore non-text wrapper behavior

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Consolidate all bundler plugin code into a single new
`@sentry/bundler-plugins` package with subpath exports
(`/rollup`, `/webpack`, `/vite`, etc.). Code was moved using `git
mv` to preserve history.

The existing bundler-specific packages (`@sentry/rollup-plugin`,
etc.) become thin stubs that re-export from
`@sentry/bundler-plugins`. This makes it straightforward to:

- Add new bundler support (e.g. rolldown) without publishing a
  new package
- Move all plugin code in the JS monorepo as a single dependency
  rather than 6
- Keep bundler-specific packages at v5, avoiding unnecessary
  major version bumps for users

Individual packages can eventually be deprecated but there's no
urgency — integration tests still target them and they remain
fully functional.
- Remove all contents that are not going to be ported to the
  sentry-javascript monorepo.
- Move the integration tests into a suitable location.
@isaacs isaacs requested a review from timfish June 4, 2026 21:28
Comment thread yarn.lock Outdated
Comment thread dev-packages/bundler-plugin-integration-tests/fixtures/utils.ts Dismissed
Comment thread packages/bundler-plugins/src/core/utils.ts Fixed
Copy link
Copy Markdown
Collaborator

@timfish timfish left a comment

Choose a reason for hiding this comment

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

Great!

@isaacs isaacs force-pushed the feat/merge-in-sentry-javascript-bundler-plugins branch from 2da5301 to 936498f Compare June 4, 2026 23:40
Copy link
Copy Markdown

@cursor cursor Bot left a comment

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.

Reviewed by Cursor Bugbot for commit 936498f. Configure here.

Comment thread dev-packages/bundler-plugin-integration-tests/fixtures/utils.ts
Integrate the newly merged in `@sentry/bundler-plugins` project to the
sentry-javascript monorepo.

- Integration tests are updated to use the named submodule exports on
  the `@sentry/bundler-plugins` package, rather than the per-platform
  re-export shims.
- Lint and naming conventions brought in line with project standards.
- Bundler-plugins integration tests now run on CI.

The version has not been updated from its independent 5.x line, though
it may be a good idea to bump it up to align with the 10.x line that the
rest of the monorepo uses.
@isaacs isaacs force-pushed the feat/merge-in-sentry-javascript-bundler-plugins branch from 936498f to 8046230 Compare June 5, 2026 00:01
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.