Skip to content

Latest commit

 

History

History

rollup-plugin

README.md

Sentry

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-dev

Usage

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

Documentation

Support