sentry-react-native icon indicating copy to clipboard operation
sentry-react-native copied to clipboard

Support `rnx-kit` Serializers with `createSentryMetroSerializer`

Open renchap opened this issue 1 year ago • 3 comments

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

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.

renchap avatar Apr 08 '24 10:04 renchap

@renchap Thank you for opening the issue, I'll label this as feature request and we'll discuss this internally.

krystofwoldrich avatar Apr 10 '24 08:04 krystofwoldrich

I've renamed this issue to track compatibility with both https://microsoft.github.io/rnx-kit/docs/tools/metro-serializer and https://microsoft.github.io/rnx-kit/docs/tools/metro-serializer-esbuild

krystofwoldrich avatar May 06 '24 21:05 krystofwoldrich