delete source map files after uploaded to sentry or anywhere
npm i sentry-extra-delete-sourcemap-webpack-plugin -D
// webpack.config.js
const DeleteSourceMapWebpackPlugin = require('sentry-extra-delete-sourcemap-webpack-plugin')
module.exports = {
// ...
plugins: [
new DeleteSourceMapWebpackPlugin()
],
// ...
}