vite-plugin-rollbar
Advanced tools
Comparing version 0.0.8 to 0.0.9
{ | ||
"name": "vite-plugin-rollbar", | ||
"version": "0.0.8", | ||
"version": "0.0.9", | ||
"description": "A Vite plugin to upload sourcemaps to Rollbar after build.", | ||
@@ -5,0 +5,0 @@ "main": "./cjs/index.js", |
@@ -1,2 +0,43 @@ | ||
# vite-plugin-rollbar | ||
A Vite plugin to upload sourcemaps to Rollbar | ||
# Plugin to integrate Vite ⚡️ with Rollbar | ||
![Version](https://img.shields.io/npm/v/vite-plugin-rollbar) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](#) [![GitHub issues](https://img.shields.io/github/issues/clinggroup/vite-plugin-rollbar)](https://github.com/clinggroup/vite-plugin-rollbar/issues) | ||
This is a Vite plugin that simplifies uploading the sourcemaps, generated from a Vite build, to Rollbar. | ||
## Installation | ||
Install the plugin with npm: | ||
```shell | ||
npm install vite-plugin-rollbar --save-dev | ||
``` | ||
## Basic Usage | ||
An example vite.config.js: | ||
```typescript | ||
// 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', | ||
silent: true, | ||
} | ||
export default defineConfig({ | ||
// other options | ||
plugins: [ viteRollbar(rollbarConfig) ], | ||
build: { | ||
// Required: tells Vite to create source maps | ||
sourcemap: true, | ||
} | ||
}) | ||
``` | ||
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
27239
44