@sentry/node
Version:
Sentry Node SDK using OpenTelemetry for performance instrumentation
35 lines • 1.35 kB
TypeScript
import type { SentryVitePluginOptions as SentryVitePluginOptionsBase } from '@sentry/bundler-plugins/vite';
import type { InstrumentationConfig } from '@sentry/server-utils';
import type { VitePlugin } from '@sentry/server-utils/orchestrion/vite';
export type SentryVitePluginOptions = SentryVitePluginOptionsBase & {
/**
* @ignore This is for internal use only when this plugin is consumed by a framework SDK
*/
instrumentations?: InstrumentationConfig[];
/**
* Automatic instrumentation of server-side dependencies at build time.
*
* Set to `false` to turn it off.
*
* @default true
*/
buildTimeInstrumentation?: boolean;
};
/**
* 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: '…' })] };
* ```
*/
export declare function sentryVitePlugin(options?: SentryVitePluginOptions): VitePlugin[];
//# sourceMappingURL=vite.d.ts.map