webpack-bugsnag-plugins
Advanced tools
Comparing version 1.0.0 to 1.1.0
const BugsnagBuildReporterPlugin = require('./build-reporter-plugin') | ||
const BugsnagSourceMapUploaderPlugin = require('./source-map-uploader-plugin') | ||
module.exports = { | ||
BugsnagBuildReporterPlugin: BugsnagBuildReporterPlugin | ||
BugsnagBuildReporterPlugin: BugsnagBuildReporterPlugin, | ||
BugsnagSourceMapUploaderPlugin: BugsnagSourceMapUploaderPlugin | ||
} |
{ | ||
"name": "webpack-bugsnag-plugins", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"description": "Webpack plugins for common Bugsnag actions", | ||
@@ -11,3 +11,3 @@ "keywords": [ | ||
"scripts": { | ||
"test": "standard && tape test/build-reporter-plugin.test.js" | ||
"test": "standard && tape test/**.test.js | tap-spec" | ||
}, | ||
@@ -21,3 +21,6 @@ "repository": { | ||
"devDependencies": { | ||
"concat-stream": "^1.6.0", | ||
"parse-formdata": "^1.0.2", | ||
"standard": "^10.0.3", | ||
"tap-spec": "^4.1.1", | ||
"tape": "^4.8.0", | ||
@@ -27,3 +30,5 @@ "webpack": "^3.10.0" | ||
"dependencies": { | ||
"bugsnag-build-reporter": "^1.0.0" | ||
"bugsnag-build-reporter": "^1.0.0", | ||
"bugsnag-sourcemaps": "^1.0.3", | ||
"run-parallel-limit": "^1.0.3" | ||
}, | ||
@@ -30,0 +35,0 @@ "standard": { |
@@ -15,2 +15,4 @@ # webpack-bugsnag-plugins | ||
### `new BugsnagBuildReporterPlugin(build, opts):`[`WebpackPlugin`](https://webpack.js.org/concepts/plugins/) | ||
```js | ||
@@ -20,4 +22,2 @@ const { BugsnagBuildReporterPlugin } = require('webpack-bugsnag-plugins') | ||
### `BugsnagBuildReporterPlugin(build, opts): stream` | ||
Reports your application's build to Bugsnag. It can auto detect source control from `.git`, `.hg` and `package.json`. | ||
@@ -66,2 +66,45 @@ This plugin hooks into the `'after-emit'` event once all output files have been generated by the Webpack compiler. If anything causes the compilation to fail before this step, the build report will not get sent. | ||
--- | ||
### `new BugsnagSourceMapUploaderPlugin(opts):`[`WebpackPlugin`](https://webpack.js.org/concepts/plugins/) | ||
```js | ||
const { BugsnagSourceMapUploaderPlugin } = require('webpack-bugsnag-plugins') | ||
``` | ||
Upload your application's sourcemap(s) to Bugsnag. When Webpack is done producing output, this plugin detects sourcemaps for any output chunks and uploads them to Bugsnag. | ||
- `opts` provide options to the sourcemap uploader | ||
- `apiKey: string` your Bugsnag API key __[required]__ | ||
- `publicPath: string` the path to your bundled assets (as the browser will see them). This option must either be provided here, or as [`output.publicPath`](https://webpack.js.org/configuration/output/#output-publicpath) in your Webpack config. | ||
- `appVersion: string` the version of the application you are building | ||
- `overwrite: boolean` whether you want to overwrite previously uploaded sourcemaps | ||
- `endpoint: string` post the build payload to a URL other than the default (`https://upload.bugsnag.com`) | ||
#### Usage | ||
```js | ||
const { BugsnagSourceMapUploaderPlugin } = require('webpack-bugsnag-plugins') | ||
module.exports = { | ||
entry: './app.js', | ||
devtool: 'source-map', | ||
output: { | ||
path: __dirname, | ||
filename: './bundle.js', | ||
publicPath: 'https://your-app.xyz/assets/' | ||
}, | ||
plugins: [].concat( | ||
// It's a good idea to only run this plugin when you're building a bundle | ||
// that will be released, rather than for every development build | ||
isDistEnv | ||
? new BugsnagSourceMapUploaderPlugin({ | ||
apiKey: 'YOUR_API_KEY', | ||
appVersion: '1.2.3' | ||
}) | ||
: [] | ||
) | ||
} | ||
``` | ||
## Support | ||
@@ -68,0 +111,0 @@ |
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
13114
8
99
120
3
6
+ Addedbugsnag-sourcemaps@^1.0.3
+ Addedrun-parallel-limit@^1.0.3
+ Addedasynckit@0.4.0(transitive)
+ Addedbalanced-match@1.0.2(transitive)
+ Addedbrace-expansion@1.1.11(transitive)
+ Addedbugsnag-sourcemaps@1.3.0(transitive)
+ Addedcamelcase@2.1.1(transitive)
+ Addedcamelcase-keys@2.1.0(transitive)
+ Addedcombined-stream@1.0.8(transitive)
+ Addedconcat-map@0.0.1(transitive)
+ Addedconcat-stream@2.0.0(transitive)
+ Addeddeep-extend@0.6.0(transitive)
+ Addeddelayed-stream@1.0.0(transitive)
+ Addedfind-up@1.1.2(transitive)
+ Addedform-data@2.5.1(transitive)
+ Addedfs.realpath@1.0.0(transitive)
+ Addedget-stdin@4.0.1(transitive)
+ Addedglob@7.2.3(transitive)
+ Addedindent-string@2.1.0(transitive)
+ Addedinflight@1.0.6(transitive)
+ Addedini@1.3.8(transitive)
+ Addedis-finite@1.1.0(transitive)
+ Addedis-utf8@0.2.1(transitive)
+ Addedkleur@3.0.3(transitive)
+ Addedload-json-file@1.1.0(transitive)
+ Addedmeow@3.7.0(transitive)
+ Addedmime-db@1.52.0(transitive)
+ Addedmime-types@2.1.35(transitive)
+ Addedminimatch@3.1.2(transitive)
+ Addedobject-assign@4.1.1(transitive)
+ Addedparse-json@2.2.0(transitive)
+ Addedpath-exists@2.1.0(transitive)
+ Addedpath-is-absolute@1.0.1(transitive)
+ Addedpath-type@1.1.0(transitive)
+ Addedpify@2.3.0(transitive)
+ Addedpinkie@2.0.4(transitive)
+ Addedpinkie-promise@2.0.1(transitive)
+ Addedrc@1.2.8(transitive)
+ Addedread-pkg@1.1.0(transitive)
+ Addedread-pkg-up@1.0.1(transitive)
+ Addedreadable-stream@3.6.2(transitive)
+ Addedredent@1.0.0(transitive)
+ Addedrepeating@2.0.1(transitive)
+ Addedrun-parallel-limit@1.1.0(transitive)
+ Addedstrip-bom@2.0.0(transitive)
+ Addedstrip-indent@1.0.1(transitive)
+ Addedstrip-json-comments@2.0.1(transitive)
+ Addedtrim-newlines@1.0.0(transitive)