parcel-plugin-honeybadger

0.1.0 • Public • Published

Honeybadger's Parcel Source Map Plugin

npm version

This is a Parcel 1.x plugin to upload javascript sourcemaps to Honeybadger's API endpoint for source maps.

Installation

Install using npm or yarn:

yarn add --dev parcel-plugin-honeybadger

Configuration

The plugin takes all of the parameters from environment variables. It supports using dotenv and dotenv-expand since Parcel does that.

The plugin uses the following environment variables to prepare Honeybadger Sourcemap API's parameters:

HONEYBADGER_API_KEY (required)
The API key of your Honeybadger project.>
HONEYBADGER_ASSET_BASE_URL (required)
The base URL to production assets (scheme://host[:port]) without trailing slash. The plugin combines HONEYBADGER_ASSET_BASE_URL with publicURL and the generated minified js file name to build the API parameter minified_url
HONEYBADGER_REVISION (optional)
The deploy revision (i.e. commit sha) that your source map applies to. This could also be a code version. For best results, set it to something unique every time your code changes.

/parcel-plugin-honeybadger/

    Package Sidebar

    Install

    npm i parcel-plugin-honeybadger

    Weekly Downloads

    1

    Version

    0.1.0

    License

    MIT

    Unpacked Size

    6.05 kB

    Total Files

    8

    Last publish

    Collaborators

    • tamershlash