@sentry/webpack-plugin
Advanced tools
Comparing version 1.19.0 to 1.19.1
@@ -5,2 +5,6 @@ # Changelog | ||
## 1.19.1 | ||
- fix(deps): Add `webpack-sources` dependency (#397) | ||
## 1.19.0 | ||
@@ -7,0 +11,0 @@ |
@@ -11,3 +11,3 @@ { | ||
"author": "Sentry", | ||
"version": "1.19.0", | ||
"version": "1.19.1", | ||
"license": "MIT", | ||
@@ -22,3 +22,4 @@ "repository": "git@github.com:getsentry/sentry-webpack-plugin.git", | ||
"dependencies": { | ||
"@sentry/cli": "^1.74.4" | ||
"@sentry/cli": "^1.74.4", | ||
"webpack-sources": "^2.0.0 || ^3.0.0" | ||
}, | ||
@@ -25,0 +26,0 @@ "devDependencies": { |
const SentryCli = require('@sentry/cli'); | ||
const path = require('path'); | ||
const util = require('util'); | ||
const { RawSource } = require('webpack-sources'); | ||
@@ -78,2 +79,3 @@ const SENTRY_LOADER = path.resolve(__dirname, 'sentry.loader.js'); | ||
function attachAfterCodeGenerationHook(compiler, options) { | ||
// This is only a problem for folks on webpack 3 and below | ||
if (!compiler.hooks || !compiler.hooks.make) { | ||
@@ -83,15 +85,2 @@ return; | ||
let webpackSources; | ||
try { | ||
// eslint-disable-next-line global-require, import/no-extraneous-dependencies | ||
webpackSources = require('webpack-sources'); | ||
} catch (_e) { | ||
// eslint-disable-next-line no-console | ||
console.warn( | ||
'Coud not resolve package: webpack-sources. Skipping injection for the remote entry file.' | ||
); | ||
return; | ||
} | ||
const { RawSource } = webpackSources; | ||
const moduleFederationPlugin = | ||
@@ -98,0 +87,0 @@ compiler.options && |
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
53913
2
698
+ Addedwebpack-sources@3.2.3(transitive)