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
Copy file name to clipboardExpand all lines: docs/platforms/javascript/guides/react/features/component-names.mdx
+13-2Lines changed: 13 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -50,17 +50,28 @@ Follow the instructions in the npm page for the bundler that your project uses:
50
50
51
51
Please note that although there is a Sentry bundler plugin for **esbuild**, React component name capturing is currently not supported.
52
52
53
+
53
54
Once you've followed the instructions to install the bundler plugin and added it to your bundler's config, enable component name capturing by setting the flag for it to `true`:
54
55
55
56
56
57
```javascript
57
58
// Example specific to Vite, see documentation for other bundlers
58
59
sentryVitePlugin({
59
-
// ... other options above
60
-
reactComponentAnnotation: { enabled:true }
60
+
// ... other options above
61
+
reactComponentAnnotation: {
62
+
enabled:true,
63
+
// you can ignore components from being annotated with this option
0 commit comments