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,
}),
],
};