Skip to content
Permalink
ea98d7d0de
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
17 lines (15 sloc) 439 Bytes
import esbuild from "esbuild";
import { sentryEsbuildPlugin } from "@sentry/esbuild-plugin";
const hasToken = typeof process.env.SENTRY_AUTH_TOKEN === "string";
esbuild.build({
plugins: hasToken
? [
sentryEsbuildPlugin({
authToken: process.env.SENTRY_AUTH_TOKEN,
org: process.env.SENTRY_ORG,
project: process.env.SENTRY_PROJECT,
}),
]
: undefined,
sourcemap: hasToken,
});