UNPKG

@sentry/node

Version:

Sentry Node SDK using OpenTelemetry for performance instrumentation

24 lines (23 loc) • 931 B
import { sentryRollupPlugin as sentryRollupPlugin$1 } from "@sentry/bundler-plugins/rollup"; import { sentryOrchestrionPlugin } from "@sentry/server-utils/orchestrion/rollup"; // src/bundler-plugin/rollup.ts /** * Rollup plugin that bundles the Sentry Rollup bundler plugin (source maps, * release injection, bundle size optimizations, …) together with the * code transformer (build-time `diagnostics_channel` instrumentation * for Node libraries). * * It is a drop-in replacement for `@sentry/bundler-plugins/rollup` and accepts * the same options. * @example * ```ts * // rollup.config.js * import { sentryRollupPlugin } from '@sentry/node/rollup'; * export default { plugins: [sentryRollupPlugin({ org: '…', project: '…' })] }; * ``` */ function sentryRollupPlugin(options) { return [...sentryRollupPlugin$1(options), sentryOrchestrionPlugin(options)]; } export { sentryRollupPlugin }; //# sourceMappingURL=rollup.js.map