@sentry/node
Version:
Sentry Node SDK using OpenTelemetry for performance instrumentation
25 lines (24 loc) • 901 B
JavaScript
import { sentryVitePlugin as sentryVitePlugin$1 } from "@sentry/bundler-plugins/vite";
import { sentryOrchestrionPlugin } from "@sentry/server-utils/orchestrion/vite";
// src/bundler-plugin/vite.ts
/**
* Vite plugin that bundles the Sentry Vite 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/vite` and accepts the
* same options.
*
* @example
* ```ts
* // vite.config.ts
* import { sentryVitePlugin } from '@sentry/node/vite';
* export default { plugins: [sentryVitePlugin({ org: '…', project: '…' })] };
* ```
*/
function sentryVitePlugin(options) {
return [...sentryVitePlugin$1(options), sentryOrchestrionPlugin(options)];
}
export { sentryVitePlugin };
//# sourceMappingURL=vite.js.map