@sentry/node
Version:
Sentry Node SDK using OpenTelemetry for performance instrumentation
25 lines (24 loc) • 1.1 kB
JavaScript
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
let _sentry_bundler_plugins_rollup = require("@sentry/bundler-plugins/rollup");
let _sentry_server_utils_orchestrion_rollup = require("@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 [...(0, _sentry_bundler_plugins_rollup.sentryRollupPlugin)(options), (0, _sentry_server_utils_orchestrion_rollup.sentryOrchestrionPlugin)(options)];
}
exports.sentryRollupPlugin = sentryRollupPlugin;
//# sourceMappingURL=rollup.js.map