Skip to content

Commit 61edc25

Browse files
authored
Merge pull request #19890 from getsentry/fix/react-router-debug-id-double-injection
fix(react-router): Disable debug ID injection in Vite plugin to prevent double injection
2 parents 9bfc682 + 28f94f3 commit 61edc25

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export async function makeCustomSentryVitePlugins(options: SentryReactRouterBuil
4242
},
4343
// will be handled in buildEnd hook
4444
sourcemaps: {
45-
disable: 'disable-upload',
45+
disable: true,
4646
...unstable_sentryVitePluginOptions?.sourcemaps,
4747
},
4848
...unstable_sentryVitePluginOptions,

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,13 @@ describe('makeCustomSentryVitePlugins', () => {
5454
expect(plugins?.[0]?.name).toBe('sentry-vite-plugin');
5555
});
5656

57-
it('should disable sourcemap upload with "disable-upload" by default', async () => {
57+
it('should disable sourcemap upload by default', async () => {
5858
await makeCustomSentryVitePlugins({});
5959

6060
expect(sentryVitePlugin).toHaveBeenCalledWith(
6161
expect.objectContaining({
6262
sourcemaps: expect.objectContaining({
63-
disable: 'disable-upload',
63+
disable: true,
6464
}),
6565
}),
6666
);

0 commit comments

Comments
 (0)