org | string | optional | The slug of the Sentry organization associated with the app. Can also be specified via the SENTRY_ORG environment variable. |
project | string | optional | The slug of the Sentry project associated with the app. Can also be specified via the SENTRY_PROJECT environment variable. |
authToken | string | optional | The 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). Can also be specified via the SENTRY_AUTH_TOKEN env variable. |
sourcemaps.assets | string | string[] | optional | A glob or an array of globs that specify the build artifacts that should be uploaded to Sentry. Leave this option undefined if you do not want to upload source maps to Sentry. The globbing patterns follow the implementation of the glob package. Use the debug option to print information about which files end up being uploaded. |
sourcemaps.ignore | string | string[] | optional | A glob or an array of globs that specify which build artifacts should not be uploaded to Sentry. The globbing patterns follow the implementation of the glob package. Use the debug option to print information about which files end up being uploaded. Default: [] |
url | string | optional | The base URL of your Sentry instance. Use this if you are using a self-hosted or Sentry instance other than sentry.io. This value can also be set via the SENTRY_URL environment variable. Defaults to https://sentry.io/, which is the correct value for SaaS customers. |
headers | Record<string, string> | optional | Headers added to every outgoing network request. |
vcsRemote | string | optional | Version control system remote name. This value can also be specified via the SENTRY_VSC_REMOTE environment variable. Defaults to 'origin' . |
release | string | optional | Unique identifier for the release. This value can also be specified via the SENTRY_RELEASE environment variable. Defaults to the output of the sentry-cli releases propose-version command, which automatically detects values for Cordova, Heroku, AWS CodeBuild, CircleCI, Xcode, and Gradle, and otherwise uses the git HEAD 's commit SHA. (the latter requires access to git CLI and for the root directory to be a valid repository). |
dist | string | optional | Unique identifier for the distribution, used to further segment your release. Usually your build number. |
releaseInjectionTargets | array /RegExp /(string | RegExp)[] /function(filePath: string): bool | optional | Filter for modules that the release should be injected in. This option takes a string, a regular expression, or an array containing strings, regular expressions, or both. It's also possible to provide a filter function that takes the absolute path of a processed module. It should return true if the release should be injected into the module and false otherwise. String values of this option require a full match with the absolute path of the module. By default, the release will be injected into all modules - however, bundlers will include the injected release code only once per entrypoint. If release injection should be disabled, provide an empty array here. |
ignoreFile | string | optional | Path to a file containing list of files/directories to ignore. Can point to .gitignore or anything with the same format. |
ignore | string /array | optional | One or more paths to ignore during upload. Overrides entries in ignoreFile file. Defaults to ['node_modules'] if neither ignoreFile nor ignore is set. |
configFile | string | optional | Path to Sentry CLI config properties, as described in https://docs.sentry.io/product/cli/configuration/#configuration-file. By default, the config file is looked for upwards from the current path, and defaults from ~/.sentryclirc are always loaded. |
ext | array | optional | Array of file extensions of files to be collected for the file upload. By default the following file extensions are processed: js, map, jsbundle and bundle. |
urlPrefix | string | optional | URL prefix to add to the beginning of all filenames. Defaults to '~/' but you might want to set this to the full URL. This is also useful if your files are stored in a sub folder. eg: url-prefix '~/static/js' . |
urlSuffix | string | optional | URL suffix to add to the end of all filenames. Useful for appending query parameters. |
validate | boolean | optional | When true , attempts source map validation before upload if rewriting is not enabled. It will spot a variety of issues with source maps and cancel the upload if any are found. Defaults to false as this can cause false positives. |
stripPrefix | array | optional | When paired with the rewrite option, this will remove a prefix from filename references inside of sourcemaps. For instance you can use this to remove a path that is build machine specific. Note that this will NOT change the names of uploaded files. |
stripCommonPrefix | boolean | optional | When paired with the rewrite option, this will add ~ to the stripPrefix array. |
sourceMapReference | boolean | optional | Determines whether sentry-cli should attempt to link minified files with their corresponding maps. By default, it will match files and maps based on name, and add a Sourcemap header to each minified file for which it finds a map. Can be disabled if all minified files contain a sourceMappingURL . Defaults to true . |
rewrite | boolean | optional | Enables rewriting of matching source maps so that indexed maps are flattened and missing sources are inlined if possible. Defaults to true |
finalize | boolean | optional | Determines if the Sentry release record should be automatically finalized (meaning a date_released timestamp is added) after artifact upload. Defaults to true . |
dryRun | boolean | optional | Attempts a dry run (useful for dev environments), making release creation a no-op. Defaults to false . |
debug | boolean | optional | Print useful debug information. Defaults to false . |
silent | boolean | optional | Suppresses all logs. Defaults to false . |
cleanArtifacts | boolean | optional | Remove all the artifacts in the release before the upload. Defaults to false . |
errorHandler | function(err: Error): void | optional | When an error occurs during release creation or sourcemaps upload, the plugin will call this function. By default, the plugin will simply throw an error, thereby stopping the bundling process. If an errorHandler callback is provided, compilation will continue, unless an error is thrown in the provided callback. |
setCommits | Object | optional | Associates the release with its commits in Sentry. See table below for details. |
deploy | Object | optional | Adds deployment information to the release in Sentry. See table below for details. |
injectRelease | boolean | optional | Whether the plugin should inject release information into the build. Defaults to true . |
uploadSourceMaps | boolean | optional | Whether the plugin should upload source maps to Sentry. Defaults to true . |
telemetry | boolean | optional | If set to true, internal plugin errors and performance data will be sent to Sentry. At Sentry we like to use Sentry ourselves to deliver faster and more stable products. We're very careful of what we're sending. We won't collect anything other than error and high-level performance data. We will never collect your code or any details of the projects in which you're using this plugin. Defaults to true . |
include | string /array /object | required | One or more paths that the plugin should scan recursively for sources. It will upload all .map files and match associated .js files. Other file types can be uploaded by using the ext option. Each path can be given as a string or an object with path-specific options. See table below for details. (Note: This option is deprecated. Please use the sourcemap option instead) |
_experiments.injectBuildInformation | boolean | optional | If set to true, the plugin will inject an additional SENTRY_BUILD_INFO variable that contains information about the build that can be used to improve SDK functionality. Defaults to false . |