@sentry/webpack-plugin
Advanced tools
Comparing version 1.6.1 to 1.6.2
{ | ||
"name": "@sentry/webpack-plugin", | ||
"description": "Official webpack plugin for Sentry", | ||
"keywords": ["sentry", "sentry-cli", "webpack", "source-map"], | ||
"keywords": [ | ||
"sentry", | ||
"sentry-cli", | ||
"webpack", | ||
"source-map" | ||
], | ||
"author": "Sentry", | ||
"version": "1.6.1", | ||
"version": "1.6.2", | ||
"license": "MIT", | ||
@@ -8,0 +13,0 @@ "repository": "git@github.com:getsentry/sentry-webpack-plugin.git", |
@@ -44,2 +44,11 @@ const SentryCli = require('@sentry/cli'); | ||
/** Extracts loader's name independently of Webpack's version */ | ||
function getLoaderName(entry) { | ||
return ( | ||
entry.loader || | ||
(entry.use && entry.use[0] && entry.use[0].loader) || | ||
'<unknown loader>' | ||
); | ||
} | ||
/** | ||
@@ -257,3 +266,3 @@ * Ensures that the passed value is in an array or an array itself. | ||
compilerOptions.module.loaders || compilerOptions.module.rules | ||
).map(x => x.loader || x.use[0].loader), | ||
).map(getLoaderName), | ||
entry: sillyClone(compilerOptions.entry), | ||
@@ -267,3 +276,3 @@ }; | ||
compilerOptions.module.loaders || compilerOptions.module.rules | ||
).map(x => x.loader || x.use[0].loader), | ||
).map(getLoaderName), | ||
entry: sillyClone(compilerOptions.entry), | ||
@@ -270,0 +279,0 @@ }; |
Sorry, the diff of this file is not supported yet
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
145928
15
676