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.
npm install @sentry/esbuild-plugin --save-dev// 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,
}),
],
});