Commit a2da20fa authored by mark burdett's avatar mark burdett
Browse files

Issue #3023023 by joelstein: Include Sentry browser javascript source map file

parent 2ddaeaae
Loading
Loading
Loading
Loading
+1

File added.

Preview size limit exceeded, changes collapsed.

+3
Changes for src/Commands/RavenCommands.php: 3 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -68,6 +68,9 @@ class RavenCommands extends DrushCommands {
    if (!copy("$path/node_modules/@sentry/browser/build/bundle.min.js", "$path/js/sentry-browser/bundle.min.js")) {
      throw new Exception('Failed to copy bundle.min.js from node_modules/@sentry/browser/build to js/sentry-browser.');
    }
    if (!copy("$path/node_modules/@sentry/browser/build/bundle.min.js.map", "$path/js/sentry-browser/bundle.min.js.map")) {
      throw new Exception('Failed to copy bundle.min.js.map from node_modules/@sentry/browser/build to js/sentry-browser.');
    }
    $version = json_decode(file_get_contents("$path/package-lock.json"))->dependencies->{'@sentry/browser'}->version;
    if (!$version) {
      throw new Exception('No version found in package-lock.json.');