Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@sentry/esbuild-plugin

Package Overview
Dependencies
Maintainers
12
Versions
67
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sentry/esbuild-plugin

Official Sentry esbuild plugin

  • 0.0.1-alpha.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
92K
decreased by-0.8%
Maintainers
12
Weekly downloads
 
Created
Source

Sentry

Sentry Esbuild Plugin (WIP)

WARNING: This package is work in progress! Use with caution and do not yet use it in production. We're happy to receive your feedback!

A esbuild plugin that provides release management features for Sentry:

  • Sourcemap upload
  • Release creation
  • Automatic release name discovery (based on CI environment - Vercel, AWS, Heroku, CircleCI, or current Git SHA)
  • Automatically association of errors with releases (Release injection)

Configuration

Every plugin takes an options argument with the following properties:

OptionTypeRequiredDescription
includestringrequiredA path that the plugin should scan recursively for source maps. It will upload all .map files and match associated .js files.
orgstringoptionalThe slug of the Sentry organization associated with the app.
projectstringoptionalThe slug of the Sentry project associated with the app.
authTokenstringoptionalThe authentication token to use for all communication with Sentry. Can be obtained from https://sentry.io/settings/account/api/auth-tokens/. Required scopes: project:releases (and org:read if setCommits option is used).
urlstringoptionalThe base URL of your Sentry instance. Defaults to https://sentry.io/, which is the correct value for SAAS customers.
releasestringoptionalUnique identifier for the release. Defaults to automatically detected values for CI environments like Vercel, AWS, Heroku, CircleCI. If no such CI environment is detected, the plugin uses the git HEAD's commit SHA. (For HEAD option, requires access to the git CLI).
entries(string | RegExp)[] | RegExp | string | function(absoluteFilePath: string): booleanoptionalFilter for entry points that should be processed. By default, the release will be injected into all entry points.
extarrayoptionalThe file extensions to be considered for the sourcemaps upload. By default the following file extensions are processed: js, map, jsbundle, and bundle.
finalizebooleanoptionalIndicates whether Sentry release record should be automatically finalized (date_released timestamp added) after artifact upload. Defaults to true
debugbooleanoptionalPrint useful debug information. Defaults to false.
cleanArtifactsbooleanoptionalRemove all existing artifacts in the Sentry release before uploading sourcemaps. Defaults to false.
errorHandlerfunction(err: Error): voidoptionalFunction that is called when an error occurs during rlease creation or sourcemaps upload. When this function is provided, thrown errors will not cause the process to abort. If you still want to abort the process you can throw an error in the function.

More information

Keywords

FAQs

Package last updated on 21 Oct 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc