Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Create esbuild config
  • Loading branch information
regalijan committed Oct 19, 2023
1 parent d25ed54 commit 75402b3
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions esbuild.config.js
@@ -0,0 +1,15 @@
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,
}),
]
: undefined,
sourcemap: hasToken,
});

0 comments on commit 75402b3

Please sign in to comment.