@loongwoo/sentry-sourcemap-plugin
TypeScript icon, indicating that this package has built-in type declarations

1.2.0 • Public • Published

sentry-sourcemap-plugin

@sentry/webpack-plugin extended webpack plugin.

npm (scoped) GitHub release (latest by date including pre-releases) npm download GitHub license

中文

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.

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:

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:

const { SentrySourcemapPlugin } = require('@longwoo/sentry-sourcemap-plugin')

module.exports = {
  plugins: [
    new SentrySourcemapPlugin()
  ]
}

Package Sidebar

Install

npm i @loongwoo/sentry-sourcemap-plugin

Weekly Downloads

0

Version

1.2.0

License

MIT

Unpacked Size

15.5 kB

Total Files

11

Last publish

Collaborators

  • loong.woo