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
Once #6098 lands in @sentry/babel-plugin-component-annotate with the autoInjectSentryLabel option (default false), we need to enable it by default in the React Native SDK's Metro config.
Change location:packages/core/src/js/tools/sentryBabelTransformerUtils.ts — where addSentryComponentAnnotatePlugin() passes options to the Babel plugin.
Once #6098 lands in
@sentry/babel-plugin-component-annotatewith theautoInjectSentryLabeloption (defaultfalse), we need to enable it by default in the React Native SDK's Metro config.Change location:
packages/core/src/js/tools/sentryBabelTransformerUtils.ts— whereaddSentryComponentAnnotatePlugin()passes options to the Babel plugin.Steps:
@sentry/babel-plugin-component-annotateto the version that includes Auto-injectsentry-labelfrom static JSX text children in Babel plugin #6098autoInjectSentryLabel: truein the plugin optionswithSentryConfig()to let users opt outThis is a small change but should be a separate PR from the Babel plugin work.