# bugsnag-sourcemap-webpack-plugin

> A Webpack plugin to upload sourcemaps to Bugsnag after build

Latest version **0.9.8** (published 2018-05-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install bugsnag-sourcemap-webpack-plugin
pnpm add bugsnag-sourcemap-webpack-plugin
yarn add bugsnag-sourcemap-webpack-plugin
bun add bugsnag-sourcemap-webpack-plugin
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.9.8 |
| Published | 2018-05-03 |
| First published | 2016-12-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 9.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 13 |
| Author | bakunyo |
| Maintainers | bakunyo, kentana20 |
| Keywords | webpack, plugin, bugsnag, sourcemap, source-map |

## Links

- npm: https://www.npmjs.com/package/bugsnag-sourcemap-webpack-plugin
- Repository: https://github.com/bakunyo/bugsnag-sourcemap-webpack-plugin
- Issues: https://github.com/bakunyo/bugsnag-sourcemap-webpack-plugin/issues
- npm.io page: https://npm.io/package/bugsnag-sourcemap-webpack-plugin

## Dependencies (2)

- [async](https://npm.io/package/async.md) ^2.1.4
- [superagent](https://npm.io/package/superagent.md) ^3.8.2

## Alternatives

- [@sentry/react-native](https://npm.io/package/@sentry/react-native.md) — 2.6M weekly downloads
- [@ardatan/aggregate-error](https://npm.io/package/@ardatan/aggregate-error.md) — 708.1K weekly downloads
- [custom-error-generator](https://npm.io/package/custom-error-generator.md) — 2.0K weekly downloads
- [@technik-sde/prosemirror-recreate-transform](https://npm.io/package/@technik-sde/prosemirror-recreate-transform.md) — 1.5K weekly downloads
- [@suchipi/error-utils](https://npm.io/package/@suchipi/error-utils.md) — 78 weekly downloads

## Recent versions

- 0.9.8 (latest) — 2018-05-03
- 0.9.7 — 2018-03-10
- 0.9.6 — 2017-11-20
- 0.9.5 — 2017-05-16
- 0.9.4 — 2017-05-11
- 0.9.3 — 2017-04-18
- 0.9.2 — 2017-01-06
- 0.9.1 — 2017-01-06
- 0.9.0 — 2016-12-30

## README

# BugsnagSourceMapPlugin
![dependencies](https://david-dm.org/bakunyo/bugsnag-sourcemap-webpack-plugin.svg)  ![Travis CI](https://travis-ci.org/bakunyo/bugsnag-sourcemap-webpack-plugin.svg?branch=master) [![npm version](https://badge.fury.io/js/bugsnag-sourcemap-webpack-plugin.svg)](https://badge.fury.io/js/bugsnag-sourcemap-webpack-plugin)

A [Webpack](http://webpack.github.io/) plugin to upload sourcemaps to [Bugsnag](https://bugsnag.com/) after build

## Installation
```
$ npm install --save-dev bugsnag-sourcemap-webpack-plugin
```

## Usage
In your webpack.config.js
```javascript
const BugsnagSourceMapPlugin = require('bugsnag-sourcemap-webpack-plugin');

module.exports = {
  // your settings for webpack
  devtool: 'source-map',
  plugins: [
    new BugsnagSourceMapPlugin({
      apiKey: 'YOUR_BUGSNAG_API_KEY',
      publicPath: 'https://your.site/assets/path'
    }),
  ]
}
```

## Options
|key|required|content|default|
|:--|:--|:--|:--|
|apiKey|y|the Bugsnag API key that is used in your app.|-|
|publicPath|y|the Base hosted url of your compiled assets.|-|
|appVersion||the version of the app that the source map applies to as set in the JavaScript notifier.|-|
|silent||whether or not ignore js errors in upload to Bugsnag.|false|
|overwrite||whether to overwrite any existing version of files.|false|
|uploadSource||whether to upload source file (see `minifiedFile` in Bugsnag docs).|false|
|removeSourceMap||whether to remove sourcemap file after uploaded.|true|

## Reference
[Bugsnag - Sourcemap Upload API](https://docs.bugsnag.com/api/js-source-map-upload/)

---
_Source: https://npm.io/package/bugsnag-sourcemap-webpack-plugin · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
