A Vite plugin to upload sourcemaps to Rollbar after build.
npm install vite-plugin-rollbar!Version  
This is a Vite plugin that simplifies uploading the sourcemaps, generated from a Vite build, to Rollbar.
Install the plugin with npm:
``shell`
npm install vite-plugin-rollbar --save-dev
An example vite.config.js:
`typescript
// vite.config.ts
// other declarations
import viteRollbar from 'vite-plugin-rollbar'
/*
Configure Rollbar plugin
*/
const rollbarConfig = {
accessToken: '
version: '1.0',
baseUrl: 'yourwebsite.com',
ignoreUploadErrors: true,
silent: true,
}
export default defineConfig({
// other options
plugins: [ viteRollbar(rollbarConfig) ],
build: {
// Required: tells Vite to create source maps
sourcemap: true,
}
})
``