Plugin to integrate Vite ⚡️ with Rollbar
This is a Vite plugin that simplifies uploading the sourcemaps, generated from a Vite build, to Rollbar.
Installation
Install the plugin with npm:
npm install vite-plugin-rollbar --save-dev
Basic Usage
An example vite.config.js:
import viteRollbar from 'vite-plugin-rollbar'
const rollbarConfig = {
accessToken: '<SECRET_TOKEN_HERE>',
version: '1.0',
baseUrl: 'yourwebsite.com',
ignoreUploadErrors: true,
silent: true,
}
export default defineConfig({
plugins: [ viteRollbar(rollbarConfig) ],
build: {
sourcemap: true,
}
})