UNPKG

@sentry/remix

Version:
38 lines (37 loc) 1.07 kB
import { Plugin } from 'vite'; export type SentryRemixVitePluginOptions = { /** * Path to the app directory (where routes folder is located). * Can be relative to project root or absolute. * Defaults to 'app' in the project root. * * @example './app' * @example '/absolute/path/to/app' */ appDirPath?: string; }; /** * Vite plugin to inject Remix route manifest for Sentry client-side route parameterization. * * @param options - Plugin configuration options * @returns Vite plugin * * @example * ```typescript * // vite.config.ts * import { defineConfig } from 'vite'; * import { vitePlugin as remix } from '@remix-run/dev'; * import { sentryRemixVitePlugin } from '@sentry/remix'; * * export default defineConfig({ * plugins: [ * remix(), * sentryRemixVitePlugin({ * appDirPath: './app', * }), * ], * }); * ``` */ export declare function sentryRemixVitePlugin(options?: SentryRemixVitePluginOptions): Plugin; //# sourceMappingURL=vite.d.ts.map