https://github.com/long-woo/sentry-sourcemap-plugin
🐻 Sentry automatically deletes the SourceMap file after uploading it Map file.(Sentry 上传 SourceMap 文件后,自动删除 .map 文件。)
https://github.com/long-woo/sentry-sourcemap-plugin
plugin sentry webpack webpack-plugin
Last synced: 4 months ago
JSON representation
🐻 Sentry automatically deletes the SourceMap file after uploading it Map file.(Sentry 上传 SourceMap 文件后,自动删除 .map 文件。)
- Host: GitHub
- URL: https://github.com/long-woo/sentry-sourcemap-plugin
- Owner: long-woo
- License: mit
- Created: 2021-06-29T14:45:09.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2026-03-05T20:43:15.000Z (4 months ago)
- Last Synced: 2026-03-05T23:38:31.887Z (4 months ago)
- Topics: plugin, sentry, webpack, webpack-plugin
- Language: TypeScript
- Homepage:
- Size: 213 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# sentry-sourcemap-plugin
> `@sentry/webpack-plugin` extended webpack plugin.




[中文](https://github.com/long-woo/sentry-sourcemap-plugin/blob/master/README_ZH.md)
Sentry automatically deletes the SourceMap file after uploading it Map file.
⚠️ This plugin is configured with some initial values by default::
- release: '1.0.0', automatically read the `version` in the current project `package.json`。
- include: './dist'。
- configFile: '.sentryclirc'。
## Use
### Install
> 💡 `@longwoo/sentry-sourcemap-plugin` already contains `@sentry/webpack-plugin` plugin, no need to install it.
The configuration is consistent with [`@sentry/webpack-plugin`](https://www.npmjs.com/package/@sentry/webpack-plugin).
```sh
npm install @longwoo/sentry-sourcemap-plugin --save-dev
# or
yarn add @longwoo/sentry-sourcemap-plugin -D
```
### Vue project
Add the following configuration in the `vue.config.js` file:
```js
const { SentrySourcemapPlugin } = require('@longwoo/sentry-sourcemap-plugin')
module.exports = {
configureWebpack: config => {
config.plugins.push(new SentrySourcemapPlugin())
}
}
```
### Webpack
Added in the `plugins` option of the `webpack.config.js` file:
```js
const { SentrySourcemapPlugin } = require('@longwoo/sentry-sourcemap-plugin')
module.exports = {
plugins: [
new SentrySourcemapPlugin()
]
}
```