You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Avoid inlining TypeScript helpers (__rest, __awaiter) in every file of dist/js #6955
@sentry/react-native@8.26.0 ships TypeScript helpers inlined into its compiled output, so the same helper code is duplicated in every file that uses it. This adds ~7.0 KB of repeated code to the JS bundle of every app using the SDK.
Enable "importHelpers": true in tsconfig.json and add tslib as a dependency. The compiler will then import the helpers from tslib instead of emitting a copy in each file, so they're included only once in the app bundle (and deduplicated with other packages that already use tslib).
Alternatively, raising the compile target (e.g. ES2018+) would let TypeScript emit native object rest / async-await and drop these helpers entirely, leaving down-levelling to the app's Babel/Metro setup.
Activity
linear-code commentedon Oct 27, 2026
RN-839
antonis commentedon Oct 28, 2026
Thank you for reporting 🙇 We will investigate it and iterate back.
build(core): Compile SDK to ES2018 to drop inlined TS helpers (#6957)
github-actions commentedon Oct 29, 2026
A PR closing this issue has just been released 🚀
This issue was referenced by PR #6957, which was included in the 8.33.0 release.