@sentry/webpack-plugin
Advanced tools
Comparing version 1.3.2 to 1.3.3
@@ -11,3 +11,3 @@ { | ||
"author": "Sentry", | ||
"version": "1.3.2", | ||
"version": "1.3.3", | ||
"license": "MIT", | ||
@@ -14,0 +14,0 @@ "repository": "git@github.com:getsentry/sentry-webpack-plugin.git", |
@@ -64,3 +64,3 @@ <p align="center"> | ||
* `ext [optional]` - `string`, adds an additional file extension to be considered. By default the following file extensions are processed: js, map, jsbundle and bundle. | ||
* `urlPrefix [optional]` - `string`, this sets an URL prefix in front of all files. This 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' | ||
* `urlPrefix [optional]` - `string`, this sets an URL prefix in front of all files. This 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'` | ||
* `validate [optional]` - `boolean`, this attempts sourcemap validation before upload when rewriting is not enabled. It will spot a variety of issues with source maps and cancel the upload if any are found. This is not the default as this can cause false positives. | ||
@@ -67,0 +67,0 @@ * `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. |
@@ -38,14 +38,24 @@ const SentryCli = require('@sentry/cli'); | ||
} | ||
if (typeof changedCompiler.options.module.rules === 'undefined') { | ||
changedCompiler.options.module.rules = []; | ||
// Handle old `module.loaders` syntax | ||
if (typeof changedCompiler.options.module.loaders !== 'undefined') { | ||
changedCompiler.options.module.loaders.push({ | ||
test: /sentry-webpack\.module\.js$/, | ||
loader: path.resolve(__dirname, 'sentry.loader.js'), | ||
options: { versionPromise }, | ||
}); | ||
} else { | ||
if (typeof changedCompiler.options.module.rules === 'undefined') { | ||
changedCompiler.options.module.rules = []; | ||
} | ||
changedCompiler.options.module.rules.push({ | ||
test: /sentry-webpack\.module\.js$/, | ||
use: [ | ||
{ | ||
loader: path.resolve(__dirname, 'sentry.loader.js'), | ||
options: { versionPromise }, | ||
}, | ||
], | ||
}); | ||
} | ||
changedCompiler.options.module.rules.push({ | ||
test: /sentry-webpack\.module\.js$/, | ||
use: [ | ||
{ | ||
loader: path.resolve(__dirname, 'sentry.loader.js'), | ||
query: { versionPromise }, | ||
}, | ||
], | ||
}); | ||
} | ||
@@ -52,0 +62,0 @@ |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
122880
265
1