Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vite-plugin-rollbar

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vite-plugin-rollbar

A Vite plugin to upload sourcemaps to Rollbar after build.

  • 0.0.14
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2.3K
decreased by-59.27%
Maintainers
1
Weekly downloads
 
Created
Source

Plugin to integrate Vite ⚡️ with Rollbar

Version License: MIT GitHub issues

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:

// vite.config.ts
// other declarations
import viteRollbar from 'vite-plugin-rollbar'

/*
  Configure Rollbar plugin
*/
const rollbarConfig = {
  accessToken: '<SECRET_TOKEN_HERE>',
  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,
  }
})

Keywords

FAQs

Package last updated on 29 Aug 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc