Build extensionsBuilt-in extensions
esbuild Plugin
Use the esbuildPlugin build extension to add existing or custom esbuild plugins to your build process
You can easily add existing or custom esbuild plugins to your build process using the esbuildPlugin extension:
import { } from "@trigger.dev/sdk";
import { } from "@trigger.dev/build/extensions";
import { } from "@sentry/esbuild-plugin";
export default ({
: "<project ref>",
// Your other config settings...
build: {
: [
(
({
org: process..SENTRY_ORG,
project: process..SENTRY_PROJECT,
authToken: process..SENTRY_AUTH_TOKEN,
}),
// optional - only runs during the deploy command, and adds the plugin to the end of the list of plugins
{ placement: "last", target: "deploy" }
),
],
},
});Was this page helpful?
Last updated
Edit on GitHub