npm.io
11.10.0 • Published 3d ago

@sentry/webpack-plugin

Licence
MIT
Version
11.10.0
Deps
1
Size
7 kB
Vulns
0
Weekly
0
Stars
8.8K

Sentry

Sentry Webpack Plugin

A Webpack plugin that uploads source maps to Sentry and injects release and Debug ID information into your bundles.

This package re-exports @sentry/bundler-plugins/webpack.

Installation

npm install @sentry/webpack-plugin --save-dev

Usage

// webpack.config.js
const { sentryWebpackPlugin } = require('@sentry/webpack-plugin');

module.exports = {
  devtool: 'source-map',
  plugins: [
    sentryWebpackPlugin({
      org: process.env.SENTRY_ORG,
      project: process.env.SENTRY_PROJECT,
      authToken: process.env.SENTRY_AUTH_TOKEN,
    }),
  ],
};

Documentation

Support

Keywords