diff --git a/packages/react-router/src/vite/makeCustomSentryVitePlugins.ts b/packages/react-router/src/vite/makeCustomSentryVitePlugins.ts index 1863a7b66f9f..fcec109c6baa 100644 --- a/packages/react-router/src/vite/makeCustomSentryVitePlugins.ts +++ b/packages/react-router/src/vite/makeCustomSentryVitePlugins.ts @@ -42,7 +42,7 @@ export async function makeCustomSentryVitePlugins(options: SentryReactRouterBuil }, // will be handled in buildEnd hook sourcemaps: { - disable: 'disable-upload', + disable: true, ...unstable_sentryVitePluginOptions?.sourcemaps, }, ...unstable_sentryVitePluginOptions, diff --git a/packages/react-router/test/vite/makeCustomSentryVitePlugins.test.ts b/packages/react-router/test/vite/makeCustomSentryVitePlugins.test.ts index 98dc6d8ba662..b98a6ebfb80d 100644 --- a/packages/react-router/test/vite/makeCustomSentryVitePlugins.test.ts +++ b/packages/react-router/test/vite/makeCustomSentryVitePlugins.test.ts @@ -54,13 +54,13 @@ describe('makeCustomSentryVitePlugins', () => { expect(plugins?.[0]?.name).toBe('sentry-vite-plugin'); }); - it('should disable sourcemap upload with "disable-upload" by default', async () => { + it('should disable sourcemap upload by default', async () => { await makeCustomSentryVitePlugins({}); expect(sentryVitePlugin).toHaveBeenCalledWith( expect.objectContaining({ sourcemaps: expect.objectContaining({ - disable: 'disable-upload', + disable: true, }), }), );