Skip to content

Commit 537cc43

Browse files
antonisclaude
andauthored
docs(react-native): Restore includeWebFeedback Metro config option (#17775)
## DESCRIBE YOUR PR Restores the `includeWebFeedback` option to the Metro "Reduce Bundle Size" docs, reverting the removal from #17774. The SDK fix for the crash has landed in getsentry/sentry-react-native#6150. **Do not merge until the SDK fix is released.** ## IS YOUR CHANGE URGENT? - [ ] Urgent deadline: - [ ] Other deadline: - [x] None: Not urgent, can wait up to 1 week+ ⚠️ Should be merged after getsentry/sentry-react-native#6150 is released ## PRE-MERGE CHECKLIST - [ ] Checked Vercel preview for correctness, including links - [ ] PR was reviewed and approved by any necessary SMEs (subject matter experts) - [ ] PR was reviewed and approved by a member of the [Sentry docs team](https://github.com/orgs/getsentry/teams/docs) Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent a2fd1ff commit 537cc43

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

  • docs/platforms/react-native/manual-setup

docs/platforms/react-native/manual-setup/metro.mdx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,12 @@ const config = getSentryExpoConfig(__dirname, {
7474

7575
### Reduce Bundle Size
7676

77-
If you're not targeting React Native for Web, you can exclude web-only packages like Session Replay from the bundle by opting out via the Metro Plugin options. When set to `false`, the Sentry Metro Plugin resolves the matching Sentry sub-packages to an empty module so they're not included in the output bundle.
77+
If you're not targeting React Native for Web, you can exclude web-only packages like Session Replay and User Feedback from the bundle by opting out via the Metro Plugin options. When set to `false`, the Sentry Metro Plugin resolves the matching Sentry sub-packages to an empty module so they're not included in the output bundle.
7878

7979
| Option | Default | Effect when set to `false` |
8080
| --------------------- | ------- | ------------------------------------------------------------------------ |
8181
| `includeWebReplay` | `true` | Excludes `@sentry/replay` and `@sentry-internal/replay` from the bundle. |
82+
| `includeWebFeedback` | `true` | Excludes `@sentry-internal/feedback` from the bundle. |
8283

8384
Note that these options only affect bundling. They do not disable the corresponding native (Android/iOS) integrations.
8485

@@ -89,6 +90,7 @@ const { withSentryConfig } = require("@sentry/react-native/metro");
8990
const config = getDefaultConfig(__dirname);
9091
module.exports = withSentryConfig(config, {
9192
includeWebReplay: false,
93+
includeWebFeedback: false,
9294
});
9395
```
9496

@@ -97,6 +99,7 @@ const { getSentryExpoConfig } = require("@sentry/react-native/metro");
9799

98100
const config = getSentryExpoConfig(__dirname, {
99101
includeWebReplay: false,
102+
includeWebFeedback: false,
100103
});
101104
```
102105

0 commit comments

Comments
 (0)