Sentry

# Sentry Vite Plugin A Vite plugin that uploads source maps to Sentry and injects release and Debug ID information into your bundles. This package re-exports `@sentry/bundler-plugins/vite`. ## Installation ```bash npm install @sentry/vite-plugin --save-dev ``` ## Usage ```js // vite.config.js import { defineConfig } from 'vite'; import { sentryVitePlugin } from '@sentry/vite-plugin'; export default defineConfig({ build: { sourcemap: true, }, plugins: [ sentryVitePlugin({ org: process.env.SENTRY_ORG, project: process.env.SENTRY_PROJECT, authToken: process.env.SENTRY_AUTH_TOKEN, }), ], }); ``` ## Documentation - [Uploading source maps](https://docs.sentry.io/platforms/javascript/sourcemaps/uploading/) ## Support - [Report a bug](https://github.com/getsentry/sentry-javascript/issues/new/choose) - [Contributing](https://github.com/getsentry/sentry-javascript/blob/develop/CONTRIBUTING.md)