Skip to content

Commit 8ff4ba9

Browse files
committed
Add Vite plugin to react-router instrumentation E2E test app
1 parent c8f4697 commit 8ff4ba9

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

  • dev-packages/e2e-tests/test-applications/react-router-7-framework-instrumentation
Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
import { reactRouter } from '@react-router/dev/vite';
2+
import { sentryReactRouter } from '@sentry/react-router';
23
import { defineConfig } from 'vite';
34

4-
export default defineConfig({
5-
plugins: [reactRouter()],
6-
});
5+
export default defineConfig(async config => ({
6+
plugins: [
7+
reactRouter(),
8+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
9+
...((await sentryReactRouter({ sourcemaps: { disable: true } }, config)) as any[]),
10+
],
11+
}));

0 commit comments

Comments
 (0)