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: packages/react-router/src/vite/types.ts
+19Lines changed: 19 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -125,6 +125,25 @@ export type SentryReactRouterBuildOptions = {
125
125
*/
126
126
debug?: boolean;
127
127
128
+
/**
129
+
* Options related to react component name annotations.
130
+
* Disabled by default, unless a value is set for this option.
131
+
* When enabled, your app's DOM will automatically be annotated during build-time with their respective component names.
132
+
* This will unlock the capability to search for Replays in Sentry by component name, as well as see component names in breadcrumbs and performance monitoring.
133
+
* Please note that this feature is not currently supported by the esbuild bundler plugins, and will only annotate React components
134
+
*/
135
+
reactComponentAnnotation?: {
136
+
/**
137
+
* Whether the component name annotate plugin should be enabled or not.
138
+
*/
139
+
enabled?: boolean;
140
+
141
+
/**
142
+
* A list of strings representing the names of components to ignore. The plugin will not apply `data-sentry` annotations on the DOM element for these components.
143
+
*/
144
+
ignoredComponents?: string[];
145
+
};
146
+
128
147
/**
129
148
* Options for the Sentry Vite plugin to customize the source maps upload process.
0 commit comments