Delete source map files after upload to Sentry.
npm i sentry-delete-sourcemaps-webpack-plugin -D
// webpack.config.js
const DeleteSourceMapsWebpackPlugin = require('sentry-delete-sourcemaps-webpack-plugin')
module.exports = {
// ...
plugins: [
new DeleteSourceMapsWebpackPlugin()
],
// ...
}