Gathering detailed insights and metrics for vite-plugin-bugsnag
Gathering detailed insights and metrics for vite-plugin-bugsnag
Gathering detailed insights and metrics for vite-plugin-bugsnag
Gathering detailed insights and metrics for vite-plugin-bugsnag
npm install vite-plugin-bugsnag
Typescript
Module System
Node Version
NPM Version
TypeScript (77.24%)
JavaScript (22.18%)
Shell (0.58%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
22 Stars
20 Commits
6 Forks
2 Watchers
1 Branches
4 Contributors
Updated on Jun 13, 2025
Latest Version
2.0.2
Package Id
vite-plugin-bugsnag@2.0.2
Unpacked Size
19.71 kB
Size
6.19 kB
File Count
6
NPM Version
8.1.2
Node Version
16.13.1
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
1
Report builds and upload source maps to bugsnag
There is no official plugin from Bugsnag for Vite.js.
This plugin provides the same functionality as webpack-bugsnag-plugins in Vite.js.
The API is similar to simplify the migration when moving away from Webpack.
Install the package as a development dependency:
1npm i -D vite-plugin-bugsnag # yarn add -D vite-plugin-bugsnag
Two plugins are provided, one to report build information, and another one to upload sourcemaps.
Both plugins accept apiKey
, appVersion
, and endpoint
, so you can share a config object.
For example:
1import { defineConfig } from 'vite' 2import { BugsnagBuildReporterPlugin, BugsnagSourceMapUploaderPlugin } from 'vite-plugin-bugsnag' 3 4const isDistEnv = process.env.RAILS_ENV === 'production' 5 6const bugsnagOptions = { 7 apiKey: process.env.BUGSNAG_API_KEY, 8 appVersion: process.env.APP_VERSION, 9} 10 11export default defineConfig({ 12 plugins: [ 13 isDistEnv && BugsnagBuildReporterPlugin({ ...bugsnagOptions, releaseStage: process.env.RAILS_ENV }), 14 isDistEnv && BugsnagSourceMapUploaderPlugin({ ...bugsnagOptions, overwrite: true }), 15 ], 16})
BugsnagBuildReporterPlugin (options)
Use this plugin to report your application's build to Bugsnag.
1import { defineConfig } from 'vite' 2import { BugsnagBuildReporterPlugin } from 'vite-plugin-bugsnag' 3 4export default defineConfig({ 5 plugins: [ 6 BugsnagBuildReporterPlugin({ 7 apiKey: 'YOUR_API_KEY', 8 appVersion: '1.2.3', 9 }), 10 ], 11})
.git
, .hg
and package.json
writeBundle
to upload the information once the build is finishedBugsnagSourceMapUploaderPlugin (options)
Use this plugin to upload your application's sourcemaps to Bugsnag.
1import { defineConfig } from 'vite' 2import { BugsnagSourceMapUploaderPlugin } from 'vite-plugin-bugsnag' 3 4export default defineConfig({ 5 build: { 6 sourcemap: true, 7 }, 8 plugins: [ 9 BugsnagSourceMapUploaderPlugin({ 10 apiKey: 'YOUR_API_KEY', 11 appVersion: '1.2.3', 12 base: 'https://your-app.xyz/assets/', 13 }), 14 ], 15})
build.sourcemap
in order for Vite to generate sourcemapsThis library is available as open source under the terms of the MIT License.
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 2/20 approved changesets -- score normalized to 1
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
27 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More