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(core): Remove optional chaining usage #5304

Merged
merged 1 commit into from Jun 24, 2022
Merged

Conversation

AbhiPrasad
Copy link
Member

@AbhiPrasad AbhiPrasad commented Jun 23, 2022

Remove optional chaining usage. This should mean we don't import the optional chaining polyfill into the browser bundle any more.

We really need to lint against this probably.

(proof it was pulling in the polyfill)
image

Before

image

After

image

Remove optional chaining usage. This should mean we don't import the
optional chaining polyfill into the browser bundle any more.
@AbhiPrasad AbhiPrasad requested review from a team, lforst and Lms24 and removed request for a team June 23, 2022 20:11
@github-actions
Copy link
Contributor

size-limit report 📦

Path Size
@sentry/browser - ES5 CDN Bundle (gzipped + minified) 19.39 KB (added)
@sentry/browser - ES5 CDN Bundle (minified) 59.94 KB (added)
@sentry/browser - ES6 CDN Bundle (gzipped + minified) 18.05 KB (added)
@sentry/browser - ES6 CDN Bundle (minified) 53.28 KB (added)
@sentry/browser - Webpack (gzipped + minified) 19.82 KB (added)
@sentry/browser - Webpack (minified) 64.64 KB (added)
@sentry/react - Webpack (gzipped + minified) 19.84 KB (added)
@sentry/nextjs Client - Webpack (gzipped + minified) 44.08 KB (added)
@sentry/browser + @sentry/tracing - ES5 CDN Bundle (gzipped + minified) 25.77 KB (added)
@sentry/browser + @sentry/tracing - ES6 CDN Bundle (gzipped + minified) 24.1 KB (added)

@AbhiPrasad
Copy link
Member Author

Figured out eslint rules here: #5305

Copy link
Member

@Lms24 Lms24 left a comment

Choose a reason for hiding this comment

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

Nice!

@AbhiPrasad AbhiPrasad merged commit 076f754 into master Jun 24, 2022
@AbhiPrasad AbhiPrasad deleted the abhi-opt-chain-core branch June 24, 2022 18:10
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.

None yet

2 participants