@sentry/webpack-plugin
Advanced tools
Comparing version 1.1.1 to 1.1.2
@@ -11,3 +11,3 @@ { | ||
"author": "Sentry", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"license": "MIT", | ||
@@ -14,0 +14,0 @@ "repository": "git@github.com:getsentry/sentry-webpack-plugin.git", |
@@ -69,4 +69,5 @@ <p align="center"> | ||
* `stripPrefix | stripCommonPrefix [optional]` - `string`, when paired with `--rewrite` this will chop-off a prefix from uploaded files. For instance you can use this to remove a path that is build machine specific. | ||
* `noSourceMapReference [optional]` - `boolean`, this prevents the automatic detection of sourcemap references. | ||
* `sourceMapReference [optional]` - `boolean`, this prevents the automatic detection of sourcemap references. | ||
* `rewrite [optional]` - `boolean`, enables rewriting of matching sourcemaps so that indexed maps are flattened and missing sources are inlined if possible., defaults to `true` | ||
You can find more information about these options in our official docs: https://docs.sentry.io/learn/cli/releases/#upload-source-maps |
var SentryCli = require('@sentry/cli'); | ||
function SentryCliPlugin(options = {}) { | ||
this.options = options; | ||
this.options.release = options.release; | ||
// By default we want that rewrite is true | ||
this.options = Object.assign({rewrite: true}, options); | ||
this.options.include = | ||
@@ -17,2 +17,3 @@ options.include && | ||
var include = this.options.include; | ||
var options = this.options; | ||
@@ -30,2 +31,3 @@ compiler.plugin('after-emit', function(compilation, cb) { | ||
release = release(compilation.hash); | ||
options.release = release; | ||
} | ||
@@ -36,3 +38,3 @@ | ||
.then(function() { | ||
return sentryCli.uploadSourceMaps(this.options); | ||
return sentryCli.uploadSourceMaps(options); | ||
}) | ||
@@ -39,0 +41,0 @@ .then(function() { |
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
29140
43
73