Skip to content

Commit 86331fc

Browse files
committed
feat(react-router): Add component annotation plugin
1 parent dcdf074 commit 86331fc

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

packages/react-router/src/vite/makeCustomSentryVitePlugins.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,11 @@ export async function makeCustomSentryVitePlugins(options: SentryReactRouterBuil
4545
// only use a subset of the plugins as all upload and file deletion tasks will be handled in the buildEnd hook
4646
return [
4747
...sentryVitePlugins.filter(plugin => {
48-
return ['sentry-telemetry-plugin', 'sentry-vite-release-injection-plugin'].includes(plugin.name);
48+
return [
49+
'sentry-telemetry-plugin',
50+
'sentry-vite-release-injection-plugin',
51+
'sentry-vite-component-name-annotate-plugin',
52+
].includes(plugin.name);
4953
}),
5054
];
5155
}

0 commit comments

Comments
 (0)