From b69b32411989eeb5595e93d09d1fe24868be85fd Mon Sep 17 00:00:00 2001 From: Zane Hitchcox Date: Tue, 17 Dec 2024 14:55:48 -0500 Subject: [PATCH] remove glob for source maps sentry already uses a glob, and if you glob before generating the source maps, they will not be deleted, because they did not exist at the time of the glob --- vite.config.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/vite.config.ts b/vite.config.ts index c7bb2880..e724a454 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -1,6 +1,5 @@ import { vitePlugin as remix } from '@remix-run/dev' import { sentryVitePlugin } from '@sentry/vite-plugin' -import { glob } from 'glob' import { flatRoutes } from 'remix-flat-routes' import { envOnlyMacros } from 'vite-env-only' import { type ViteUserConfig } from 'vitest/config' @@ -79,10 +78,10 @@ export default { }, }, sourcemaps: { - filesToDeleteAfterUpload: await glob([ + filesToDeleteAfterUpload: [ './build/**/*.map', '.server-build/**/*.map', - ]), + ], }, }) : null,