The withSentry()
plugin for hot-updater enables automatic sourcemap upload to Sentry during the update bundle build process.
This helps you track production crashes with accurate stack traces tied to your React Native source code.
https://docs.sentry.io/platforms/react-native/manual-setup/metro/
You need to configure Metro. Please refer to the Sentry documentation above for detailed setup instructions.
Use withSentry()
to wrap any compatible build plugin such as metro.
Once wrapped, sourcemaps will automatically be uploaded to Sentry when running the hot-updater deploy
process.
When withSentry()
wraps your build plugin, all generated sourcemaps are uploaded to Sentry automatically during the hot-updater deploy
process.
Now, every time you deploy, sourcemaps will be automatically uploaded to Sentry.