Skip to content

feat: Add @sentry/bundler-plugins core package#938

Merged
isaacs merged 5 commits into
mainfrom
timfish/feat/single-core-package
Jun 4, 2026
Merged

feat: Add @sentry/bundler-plugins core package#938
isaacs merged 5 commits into
mainfrom
timfish/feat/single-core-package

Conversation

@timfish

@timfish timfish commented Jun 4, 2026

Copy link
Copy Markdown
Collaborator

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

Comment thread packages/bundler-plugins/src/core/index.ts Outdated
Comment thread packages/bundler-plugins/src/rollup/index.ts Outdated
Comment thread packages/bundler-plugins/src/vite/index.ts Outdated
Comment thread packages/bundler-plugins/src/vite/index.ts 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.

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 859fcca. Configure here.

Comment thread packages/esbuild-plugin/src/index.ts
@timfish
timfish requested a review from isaacs June 4, 2026 18:24

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

👍

@isaacs
isaacs merged commit 105f25a into main Jun 4, 2026
26 checks passed
@isaacs
isaacs deleted the timfish/feat/single-core-package branch June 4, 2026 20:07
renovate Bot added a commit to andrei-picus-tink/auto-renovate that referenced this pull request Jul 15, 2026
| datasource | package             | from  | to    |
| ---------- | ------------------- | ----- | ----- |
| npm        | @sentry/vite-plugin | 5.3.0 | 5.4.0 |


## [v5.4.0](https://github.com/getsentry/sentry-javascript-bundler-plugins/blob/HEAD/CHANGELOG.md#540)

##### Important Changes ✨

The Sentry bundler plugins are moving to our main [`sentry-javascript`](https://github.com/getsentry/sentry-javascript) monorepo and
will be bumped to version `11.0.0` with the next SDK major release.
In preparation, we've already ported the `@sentry/bundler-plugin-core` and `sentry/babel-plugin-component-annotate`
packages, which are now merged and called `@@sentry/bundler-plugins`.
If you're using any of our bundler plugins (e.g. `@sentry/vite-plugin`), nothing will change for you at the moment.

If you encounter any problems, please open an issue in [`getsentry/sentry-javascript`](https://github.com/getsentry/sentry-javascript) going forward.
Thank you!

This repo will be closed after the v11 bump.

Related PRs:

- Depend on JavaScript repo package. by [@timfish](https://github.com/timfish) in [#945](getsentry/sentry-javascript-bundler-plugins#945)
- Add `@sentry/bundler-plugins` core package by [@timfish](https://github.com/timfish) in [#938](getsentry/sentry-javascript-bundler-plugins#938)
- Remove obsolete packages by [@timfish](https://github.com/timfish) in [#947](getsentry/sentry-javascript-bundler-plugins#947)

##### Bug Fixes 🐛

- (webpack) Make `webpack` import lazy to support rspack-only projects by [@s1gr1d](https://github.com/s1gr1d) in [#940](getsentry/sentry-javascript-bundler-plugins#940)
- Hide console window when running 'git rev-parse HEAD' on Windows by [@jwwisgerhof](https://github.com/jwwisgerhof) in [#941](getsentry/sentry-javascript-bundler-plugins#941)

##### Internal Changes 🔧

- Update Sentry SDK for telemetry by [@timfish](https://github.com/timfish) in [#937](getsentry/sentry-javascript-bundler-plugins#937)
- (sentry-cli) Upgrade to 2.58.6 by [@szokeasaurusrex](https://github.com/szokeasaurusrex) in [#936](getsentry/sentry-javascript-bundler-plugins#936)
- Remove versions from telemetry snapshots by [@timfish](https://github.com/timfish) in [#946](getsentry/sentry-javascript-bundler-plugins#946)
- Align lint configuration with JavaScript repo by [@timfish](https://github.com/timfish) in [#933](getsentry/sentry-javascript-bundler-plugins#933)
- Align TypeScript configuration with JavaScript repo by [@timfish](https://github.com/timfish) in [#932](getsentry/sentry-javascript-bundler-plugins#932)
- Fix CI caching on Windows by [@timfish](https://github.com/timfish) in [#934](getsentry/sentry-javascript-bundler-plugins#934)
- Remove `ts-node` usage by [@timfish](https://github.com/timfish) in [#931](getsentry/sentry-javascript-bundler-plugins#931)
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