Universal Javascript error reporting. Automatically detect JavaScript errors in the browser and Node.js, with plugins for React, Vue, Angular, Express, Restify and Koa.
Universal JavaScript notifier.
This package contains both @bugsnag/browser and @bugsnag/node and the appropriate one will be included in your application.
In Node, importing '@bugsnag/js' will provide the @bugsnag/node module.
In various bundlers, importing '@bugsnag/js' will provide the @bugsnag/browser module.
| Bundler | Support |
|---|---|
| Browserify | Supports the package.json "browser" field by default |
| Webpack | Supports the package.json "browser" field by default |
| Rollup | Set browser: true in the node-resolve plugin |
Note: by using this browser-specific entrypoint, none of the node-specific code will be included in your bundle.
This package is free software released under the MIT License. See LICENSE.txt for details.