Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(react): Mark package as having no side effects #4213

Merged
merged 2 commits into from
Dec 2, 2021

Conversation

AbhiPrasad
Copy link
Member

@AbhiPrasad AbhiPrasad commented Dec 1, 2021

Mark @sentry/react as having no side effects.

Previously we had this because we would add an event processor to change all Sentry events as a side effect, but we later changed to passing this info down through _metadata. Please see: 06d6bd8#diff-1cee8646d2cfba37d6ce6a6e9a8d16f8caba0b99fc3a1ad0cb997ed8c7384d2eL8 for the change in question.

@AbhiPrasad AbhiPrasad added this to the Treeshaking / Bundle Size milestone Dec 1, 2021
@github-actions
Copy link
Contributor

github-actions bot commented Dec 1, 2021

size-limit report

Path Base Size Current Size Change
@sentry/browser - CDN Bundle (gzipped) 0 B 22.48 KB added
@sentry/browser - Webpack 0 B 23.37 KB added
@sentry/react - Webpack 0 B 23.4 KB added
@sentry/nextjs Client - Webpack 0 B 49.73 KB added
@sentry/browser + @sentry/tracing - CDN Bundle (gzipped) 0 B 29.93 KB added

@AbhiPrasad AbhiPrasad changed the title fix(react): Mark packages as having no side effects fix(react): Mark package as having no side effects Dec 1, 2021
@AbhiPrasad AbhiPrasad merged commit 91c0909 into master Dec 2, 2021
@AbhiPrasad AbhiPrasad deleted the abhi/react-side-effect branch December 2, 2021 16:50
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