getsentry / getsentry/sentry-react-native

Support `rnx-kit` Serializers with `createSentryMetroSerializer`

Open
#3,748 3 comments 8 reactions 0 assignees View on GitHub
Errors Feature React-Native
Dominant language
TypeScript
Stars
1.8k
Forks
366
Avg merge
1d 9h
Merged PRs (30d)
89

Description

[`metro-serializer-esbuild`](https://microsoft.github.io/rnx-kit/docs/tools/metro-serializer-esbuild) is an alternative serializer for React Native that uses `esbuild`, allowing a better tree-shaking of your bundle. This is useful in multiple cases, for example if you use the [Font Awesome SVG icons](https://docs.fontawesome.com/web/dig-deeper/svg-core)

Unfortunately, it does not work with `createSentryMetroSerializer` because you need to call `createSentryBundleCallback` when you provide a custom serializer, which is not done when you use a third party serializer.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.