Skip to content

Latest commit

 

History

History

esbuild-plugin

README.md

Sentry

Sentry esbuild Plugin

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

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

Installation

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

Usage

// build.js
import * as esbuild from 'esbuild';
import { sentryEsbuildPlugin } from '@sentry/esbuild-plugin';

await esbuild.build({
  sourcemap: true,
  plugins: [
    sentryEsbuildPlugin({
      org: process.env.SENTRY_ORG,
      project: process.env.SENTRY_PROJECT,
      authToken: process.env.SENTRY_AUTH_TOKEN,
    }),
  ],
});

Documentation

Support