esbuild-bugsnag-plugins provides esbuild plugins to integrate Bugsnag error monitoring, focusing on automatic source map uploads during esbuild bundling. Current stable version is v1.0.8, released in early 2024. It is a lightweight, purpose-specific alternative to general-purpose source map uploaders like @bugsnag/source-maps, designed to work seamlessly with esbuild's plugin system. The package ships TypeScript definitions and has peer dependency on TypeScript ^5.7.3.
npm install esbuild-bugsnag-pluginsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to use the bugsnagPlugin to upload source maps during esbuild build, with required options.
Use dynamic import: const { bugsnagPlugin } = await import('esbuild-bugsnag-plugins')Update plugin options: ensure appVersion and releaseStage are passed
Import with correct casing: import { bugsnagPlugin } from 'esbuild-bugsnag-plugins'Replace 'writeKey' with 'apiKey' in plugin options
Pass 'sourcemap: true' in esbuild build options
Use named import: import { bugsnagPlugin } from 'esbuild-bugsnag-plugins'Enable ESM in package.json ("type": "module") or use dynamic import: const mod = await import('esbuild-bugsnag-plugins')Provide appVersion in plugin options: { appVersion: '1.0.0' }