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

@sentry/webpack-plugin

Package Overview
Dependencies
Maintainers
9
Versions
100
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sentry/webpack-plugin - npm Package Compare versions

Comparing version 1.3.2 to 1.3.3

2

package.json

@@ -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 @@

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