Skip to content

Commit

Permalink
remove glob for source maps
Browse files Browse the repository at this point in the history
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
  • Loading branch information
zwhitchcox committed Dec 18, 2024
1 parent 8c71548 commit b69b324
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions vite.config.ts
Original file line number Diff line number Diff line change
@@ -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'
Expand Down Expand Up @@ -79,10 +78,10 @@ export default {
},
},
sourcemaps: {
filesToDeleteAfterUpload: await glob([
filesToDeleteAfterUpload: [
'./build/**/*.map',
'.server-build/**/*.map',
]),
],
},
})
: null,
Expand Down

0 comments on commit b69b324

Please sign in to comment.