@sentry/rollup-plugin
v11.14.0
Published
Official Sentry Rollup plugin
Maintainers
Readme
Sentry Rollup Plugin
A Rollup plugin that uploads source maps to Sentry and injects release and Debug ID information into your bundles.
This package re-exports @sentry/bundler-plugins/rollup.
Installation
npm install @sentry/rollup-plugin --save-devUsage
// rollup.config.js
import { sentryRollupPlugin } from '@sentry/rollup-plugin';
export default {
output: {
sourcemap: true,
},
plugins: [
sentryRollupPlugin({
org: process.env.SENTRY_ORG,
project: process.env.SENTRY_PROJECT,
authToken: process.env.SENTRY_AUTH_TOKEN,
}),
],
};