Environment
"@sentry/react": "^9.42.1",
"@sentry/vite-plugin": "^4.0.1",
Steps to Reproduce
- Went here - https://docs.sentry.io/platforms/javascript/sourcemaps/uploading/vite/
- Followed automatic setup
Expected Result
No warnings in the console
Actual Result
I see a deprecation warning in the console, ⚠ DEPRECATION NOTICE: This functionality will be removed in a future version of sentry-cli. Use the sourcemaps command instead..
My vite config:
...
build: {
sourcemap: true,
},
sentryVitePlugin({
authToken: env.SENTRY_AUTH_TOKEN,
org: 'sentry',
project: 'fe-app',
telemetry: false,
url: 'https://url.com',
sourcemaps: {
filesToDeleteAfterUpload: '**/*.js.map',
},
}),
...
Thanks!