Create esbuild config
This commit is contained in:
parent
d25ed54bc7
commit
75402b3315
15
esbuild.config.js
Normal file
15
esbuild.config.js
Normal file
@ -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,
|
||||||
|
});
|
Loading…
x
Reference in New Issue
Block a user