# @sentry/vite-plugin

> Official Sentry Vite plugin

Latest version **11.15.0** (published 2026-11-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install @sentry/vite-plugin
pnpm add @sentry/vite-plugin
yarn add @sentry/vite-plugin
bun add @sentry/vite-plugin
```

## Health

**Score 70/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; recently updated; high maintenance score; high quality score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 11.15.0 |
| Published | 2026-11-19 |
| First published | 2022-10-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=20.19.0 <22.0.0 \|\| >=22.12.0 <23.0.0 \|\| >=23.2.0 |
| Dependencies | 1 |
| Unpacked size | 5.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 8770 |
| Author | Sentry |
| Maintainers | sentry-bot |
| Keywords | Sentry, Vite, bundler, plugin |

## Links

- npm: https://www.npmjs.com/package/@sentry/vite-plugin
- Repository: https://github.com/getsentry/sentry-javascript
- Homepage: https://github.com/getsentry/sentry-javascript/tree/develop/packages/vite-plugin
- Issues: https://github.com/getsentry/sentry-javascript/issues
- npm.io page: https://npm.io/package/@sentry/vite-plugin

## Dependencies (1)

- [@sentry/bundler-plugins](https://npm.io/package/@sentry/bundler-plugins.md) 11.15.0

## Alternatives

- [raw-loader](https://npm.io/package/raw-loader.md) — 4.3M weekly downloads
- [plop](https://npm.io/package/plop.md) — 1.4M weekly downloads
- [webpack-deadcode-plugin](https://npm.io/package/webpack-deadcode-plugin.md) — 80.3K weekly downloads
- [@storybook/preact-vite](https://npm.io/package/@storybook/preact-vite.md) — 54.2K weekly downloads
- [vite-plugin-transform](https://npm.io/package/vite-plugin-transform.md) — 2.4K weekly downloads

## Recent versions

- 11.15.0 (latest) — 2026-11-19
- 3.3.0-alpha.1 (next) — 2025-04-02
- 11.14.0 — 2026-11-17
- 11.13.0 — 2026-11-16
- 11.12.0 — 2026-11-10
- 11.11.0 — 2026-11-05
- 11.10.0 — 2026-10-28
- 11.9.0 — 2026-10-23
- 11.8.0 — 2026-10-15
- 5.4.1 — 2026-10-06
- 5.4.0 — 2026-07-10
- 5.3.0 — 2026-05-12
- 5.2.1 — 2026-04-29
- 5.2.0 — 2026-04-08
- 5.1.1 — 2026-02-26
- … 104 more at https://npm.io/package/@sentry/vite-plugin/versions

## README

<p align="center">
  <a href="https://sentry.io/?utm_source=github&utm_medium=logo" target="_blank">
    <picture>
      <source srcset="https://sentry-brand.storage.googleapis.com/sentry-logo-white.png" media="(prefers-color-scheme: dark)" />
      <source srcset="https://sentry-brand.storage.googleapis.com/sentry-wordmark-dark-280x84.png" media="(prefers-color-scheme: light), (prefers-color-scheme: no-preference)" />
      <img src="https://sentry-brand.storage.googleapis.com/sentry-wordmark-dark-280x84.png" alt="Sentry" width="280">
    </picture>
  </a>
</p>

# 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)

---
_Source: https://npm.io/package/@sentry/vite-plugin · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
