Skip to content

Conversation

@AbhiPrasad
Copy link
Member

Instead of passing down options objects, we instead directly pass down
options as appropriate. This makes it very clear how they are being
used. Also helps saves on bundle size slightly.

@AbhiPrasad AbhiPrasad requested review from a team, Lms24 and lobsterkatie and removed request for a team February 23, 2022 21:53
@github-actions
Copy link
Contributor

github-actions bot commented Feb 23, 2022

size-limit report

Path Base Size (995928b) Current Size Change
@sentry/browser - ES5 CDN Bundle (gzipped + minified) 19.77 KB 19.74 KB -0.15% 🔽
@sentry/browser - ES5 CDN Bundle (minified) 63.47 KB 63.31 KB -0.26% 🔽
@sentry/browser - ES6 CDN Bundle (gzipped + minified) 18.44 KB 18.41 KB -0.16% 🔽
@sentry/browser - ES6 CDN Bundle (minified) 56.6 KB 56.47 KB -0.23% 🔽
@sentry/browser - Webpack (gzipped + minified) 22.2 KB 22.17 KB -0.13% 🔽
@sentry/browser - Webpack (minified) 76.36 KB 76.2 KB -0.22% 🔽
@sentry/react - Webpack (gzipped + minified) 22.23 KB 22.2 KB -0.14% 🔽
@sentry/nextjs Client - Webpack (gzipped + minified) 46.4 KB 46.37 KB -0.07% 🔽
@sentry/browser + @sentry/tracing - ES5 CDN Bundle (gzipped + minified) 27.23 KB 27.2 KB -0.12% 🔽

@AbhiPrasad AbhiPrasad added this to the Treeshaking / Bundle Size milestone Feb 23, 2022
Copy link
Member

@lobsterkatie lobsterkatie left a comment

Choose a reason for hiding this comment

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

I think this is a good change!

IMHO we shouldn't do this until the major, though, because we export both eventFromException and eventFromMessage from @sentry/browser, and this changes the signatures of both. And while I get that they're designed for internal use, that doesn't mean people aren't using them. What do you think?

@timfish

This comment was marked as off-topic.

Instead of passing down options objects, we instead directly pass down
options as appropriate. This makes it very clear how they are being
used. Also helps saves on bundle size slightly.
@AbhiPrasad AbhiPrasad force-pushed the abhi-attach-stacktrace branch from 14d9846 to 626408d Compare March 1, 2022 14:24
@AbhiPrasad AbhiPrasad requested a review from lobsterkatie March 1, 2022 14:24
@AbhiPrasad AbhiPrasad merged commit 196498a into master Mar 1, 2022
@AbhiPrasad AbhiPrasad deleted the abhi-attach-stacktrace branch March 1, 2022 21:07
AbhiPrasad added a commit that referenced this pull request Mar 2, 2022
Instead of passing down options objects, we instead directly pass down
options as appropriate. This makes it very clear how they are being
used. Also helps saves on bundle size slightly.
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.

4 participants