Skip to content

chore: Make @sentry/conventions sideEffect free during bundling#22015

Merged
JPeer264 merged 2 commits into
developfrom
jp/external
Jul 7, 2026
Merged

chore: Make @sentry/conventions sideEffect free during bundling#22015
JPeer264 merged 2 commits into
developfrom
jp/external

Conversation

@JPeer264

@JPeer264 JPeer264 commented Jul 7, 2026

Copy link
Copy Markdown
Member

@sentry/conventions are marked with sideEffects. That leads to having @sentry/conventions/attributes as side effect import in the bundled output:

Screenshot 2026-07-07 at 13 46 44

By telling rollup that @sentry/conventions is side effect free, the side effect import from the output is being removed (it also reflects the package.json#sideEffect field

Screenshot 2026-07-07 at 13 47 14

Originally I came to this fix as the Cloudflare integration tests were quite verbose in this warning:

Screenshot 2026-07-07 at 13 50 42

@JPeer264 JPeer264 requested review from a team, Lms24 and timfish July 7, 2026 11:49
@JPeer264 JPeer264 self-assigned this Jul 7, 2026
@JPeer264 JPeer264 requested review from logaretm and mydea and removed request for a team July 7, 2026 11:49
@JPeer264 JPeer264 requested a review from andreiborza July 7, 2026 11:54

@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 fixing!

@JPeer264 JPeer264 merged commit f7c75e7 into develop Jul 7, 2026
297 of 299 checks passed
@JPeer264 JPeer264 deleted the jp/external branch July 7, 2026 12:27
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