npm.io
11.15.0 • Published 7h ago

@sentry/vite-plugin

Licence
MIT
Version
11.15.0
Deps
1
Size
5 kB
Vulns
0
Weekly
0
Stars
8.8K

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

npm install @sentry/vite-plugin --save-dev

Usage

// 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

Support

Keywords