UNPKG

@sentry/node

Version:

Sentry Node SDK using OpenTelemetry for performance instrumentation

26 lines (25 loc) • 1.07 kB
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" }); let _sentry_bundler_plugins_vite = require("@sentry/bundler-plugins/vite"); let _sentry_server_utils_orchestrion_vite = require("@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 [...(0, _sentry_bundler_plugins_vite.sentryVitePlugin)(options), (0, _sentry_server_utils_orchestrion_vite.sentryOrchestrionPlugin)(options)]; } exports.sentryVitePlugin = sentryVitePlugin; //# sourceMappingURL=vite.js.map