@sentry/bundler-plugin-core 2.20.1 → 2.21.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -13619,7 +13619,7 @@ function createSentryInstance(options, shouldSendTelemetry, bundler) {
13619
13619
  dsn: "https://4c2bae7d9fbc413e8f7385f55c515d51@o1.ingest.sentry.io/6690737",
13620
13620
  tracesSampleRate: 1,
13621
13621
  sampleRate: 1,
13622
- release: "2.20.1",
13622
+ release: "2.21.1",
13623
13623
  integrations: [],
13624
13624
  tracePropagationTargets: ["sentry.io/api"],
13625
13625
  stackParser: defaultStackParser,
@@ -13707,6 +13707,7 @@ function setTelemetryDataOnHub(options, hub, bundler) {
13707
13707
  hub.setTag("custom-error-handler", !!errorHandler);
13708
13708
  hub.setTag("sourcemaps-assets", !!(sourcemaps !== null && sourcemaps !== void 0 && sourcemaps.assets));
13709
13709
  hub.setTag("delete-after-upload", !!(sourcemaps !== null && sourcemaps !== void 0 && sourcemaps.deleteFilesAfterUpload) || !!(sourcemaps !== null && sourcemaps !== void 0 && sourcemaps.filesToDeleteAfterUpload));
13710
+ hub.setTag("sourcemaps-disabled", !!(sourcemaps !== null && sourcemaps !== void 0 && sourcemaps.disable));
13710
13711
  hub.setTag("react-annotate", !!(reactComponentAnnotation !== null && reactComponentAnnotation !== void 0 && reactComponentAnnotation.enabled));
13711
13712
  hub.setTag("node", process.version);
13712
13713
  hub.setTag("platform", process.platform);
@@ -13822,23 +13823,27 @@ function createDebugIdUploadFunction(_ref) {
13822
13823
  sentryClient = _ref.sentryClient,
13823
13824
  sentryCliOptions = _ref.sentryCliOptions,
13824
13825
  rewriteSourcesHook = _ref.rewriteSourcesHook,
13825
- freeDependencyOnSourcemapFiles = _ref.freeDependencyOnSourcemapFiles;
13826
+ createDependencyOnSourcemapFiles = _ref.createDependencyOnSourcemapFiles;
13827
+ var freeGlobalDependencyOnSourcemapFiles = createDependencyOnSourcemapFiles();
13826
13828
  return /*#__PURE__*/function () {
13827
13829
  var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(buildArtifactPaths) {
13828
- var artifactBundleUploadTransaction, folderToCleanUp, mkdtempSpan, tmpUploadFolder, globAssets, globSpan, globResult, debugIdChunkFilePaths, prepareSpan, preparationTasks, workers, worker, workerIndex, files, stats, uploadSize, uploadSpan, cliInstance, cleanupSpan;
13830
+ var artifactBundleUploadTransaction, folderToCleanUp, freeUploadDependencyOnSourcemapFiles, mkdtempSpan, tmpUploadFolder, globAssets, globSpan, globResult, debugIdChunkFilePaths, prepareSpan, preparationTasks, workers, worker, workerIndex, files, stats, uploadSize, uploadSpan, cliInstance, cleanupSpan;
13829
13831
  return _regeneratorRuntime().wrap(function _callee3$(_context3) {
13830
13832
  while (1) switch (_context3.prev = _context3.next) {
13831
13833
  case 0:
13832
13834
  artifactBundleUploadTransaction = sentryHub.startTransaction({
13833
13835
  name: "debug-id-sourcemap-upload"
13834
13836
  });
13835
- _context3.prev = 1;
13837
+ // It is possible that this writeBundle hook (which calls this function) is called multiple times in one build (for example when reusing the plugin, or when using build tooling like `@vitejs/plugin-legacy`)
13838
+ // Therefore we need to actually register the execution of this hook as dependency on the sourcemap files.
13839
+ freeUploadDependencyOnSourcemapFiles = createDependencyOnSourcemapFiles();
13840
+ _context3.prev = 2;
13836
13841
  mkdtempSpan = artifactBundleUploadTransaction.startChild({
13837
13842
  description: "mkdtemp"
13838
13843
  });
13839
- _context3.next = 5;
13844
+ _context3.next = 6;
13840
13845
  return fs__default.promises.mkdtemp(path__default.join(os__default.tmpdir(), "sentry-bundler-plugin-upload-"));
13841
- case 5:
13846
+ case 6:
13842
13847
  tmpUploadFolder = _context3.sent;
13843
13848
  mkdtempSpan.finish();
13844
13849
  folderToCleanUp = tmpUploadFolder;
@@ -13851,13 +13856,13 @@ function createDebugIdUploadFunction(_ref) {
13851
13856
  globSpan = artifactBundleUploadTransaction.startChild({
13852
13857
  description: "glob"
13853
13858
  });
13854
- _context3.next = 12;
13859
+ _context3.next = 13;
13855
13860
  return glob(globAssets, {
13856
13861
  absolute: true,
13857
13862
  nodir: true,
13858
13863
  ignore: ignore
13859
13864
  });
13860
- case 12:
13865
+ case 13:
13861
13866
  globResult = _context3.sent;
13862
13867
  globSpan.finish();
13863
13868
  debugIdChunkFilePaths = globResult.filter(function (debugIdChunkFilePath) {
@@ -13866,21 +13871,21 @@ function createDebugIdUploadFunction(_ref) {
13866
13871
  // Ensure order within the files so that {debug-id}-{chunkIndex} coupling is consistent
13867
13872
  debugIdChunkFilePaths.sort();
13868
13873
  if (!(Array.isArray(assets) && assets.length === 0)) {
13869
- _context3.next = 20;
13874
+ _context3.next = 21;
13870
13875
  break;
13871
13876
  }
13872
13877
  logger.debug("Empty `sourcemaps.assets` option provided. Will not upload sourcemaps with debug ID.");
13873
- _context3.next = 47;
13878
+ _context3.next = 48;
13874
13879
  break;
13875
- case 20:
13880
+ case 21:
13876
13881
  if (!(debugIdChunkFilePaths.length === 0)) {
13877
- _context3.next = 24;
13882
+ _context3.next = 25;
13878
13883
  break;
13879
13884
  }
13880
13885
  logger.warn("Didn't find any matching sources for debug ID upload. Please check the `sourcemaps.assets` option.");
13881
- _context3.next = 47;
13886
+ _context3.next = 48;
13882
13887
  break;
13883
- case 24:
13888
+ case 25:
13884
13889
  prepareSpan = artifactBundleUploadTransaction.startChild({
13885
13890
  description: "prepare-bundles"
13886
13891
  }); // Preparing the bundles can be a lot of work and doing it all at once has the potential of nuking the heap so
@@ -13933,20 +13938,20 @@ function createDebugIdUploadFunction(_ref) {
13933
13938
  for (workerIndex = 0; workerIndex < 16; workerIndex++) {
13934
13939
  workers.push(worker());
13935
13940
  }
13936
- _context3.next = 31;
13941
+ _context3.next = 32;
13937
13942
  return Promise.all(workers);
13938
- case 31:
13943
+ case 32:
13939
13944
  prepareSpan.finish();
13940
- _context3.next = 34;
13945
+ _context3.next = 35;
13941
13946
  return fs__default.promises.readdir(tmpUploadFolder);
13942
- case 34:
13947
+ case 35:
13943
13948
  files = _context3.sent;
13944
13949
  stats = files.map(function (file) {
13945
13950
  return fs__default.promises.stat(path__default.join(tmpUploadFolder, file));
13946
13951
  });
13947
- _context3.next = 38;
13952
+ _context3.next = 39;
13948
13953
  return Promise.all(stats);
13949
- case 38:
13954
+ case 39:
13950
13955
  uploadSize = _context3.sent.reduce(function (accumulator, _ref5) {
13951
13956
  var size = _ref5.size;
13952
13957
  return accumulator + size;
@@ -13963,7 +13968,7 @@ function createDebugIdUploadFunction(_ref) {
13963
13968
  baggage: dynamicSamplingContextToSentryBaggageHeader(artifactBundleUploadTransaction.getDynamicSamplingContext())
13964
13969
  }, sentryCliOptions.headers)
13965
13970
  }));
13966
- _context3.next = 45;
13971
+ _context3.next = 46;
13967
13972
  return cliInstance.releases.uploadSourceMaps(releaseName !== null && releaseName !== void 0 ? releaseName : "undefined",
13968
13973
  // unfortunetly this needs a value for now but it will not matter since debug IDs overpower releases anyhow
13969
13974
  {
@@ -13974,22 +13979,22 @@ function createDebugIdUploadFunction(_ref) {
13974
13979
  }],
13975
13980
  useArtifactBundle: true
13976
13981
  });
13977
- case 45:
13982
+ case 46:
13978
13983
  uploadSpan.finish();
13979
13984
  logger.info("Successfully uploaded source maps to Sentry");
13980
- case 47:
13981
- _context3.next = 53;
13985
+ case 48:
13986
+ _context3.next = 54;
13982
13987
  break;
13983
- case 49:
13984
- _context3.prev = 49;
13985
- _context3.t0 = _context3["catch"](1);
13988
+ case 50:
13989
+ _context3.prev = 50;
13990
+ _context3.t0 = _context3["catch"](2);
13986
13991
  sentryHub.withScope(function (scope) {
13987
13992
  scope.setSpan(artifactBundleUploadTransaction);
13988
13993
  sentryHub.captureException('Error in "debugIdUploadPlugin" writeBundle hook');
13989
13994
  });
13990
13995
  handleRecoverableError(_context3.t0);
13991
- case 53:
13992
- _context3.prev = 53;
13996
+ case 54:
13997
+ _context3.prev = 54;
13993
13998
  if (folderToCleanUp) {
13994
13999
  cleanupSpan = artifactBundleUploadTransaction.startChild({
13995
14000
  description: "cleanup"
@@ -14001,16 +14006,17 @@ function createDebugIdUploadFunction(_ref) {
14001
14006
  cleanupSpan.finish();
14002
14007
  }
14003
14008
  artifactBundleUploadTransaction.finish();
14004
- freeDependencyOnSourcemapFiles();
14005
- _context3.next = 59;
14009
+ freeGlobalDependencyOnSourcemapFiles();
14010
+ freeUploadDependencyOnSourcemapFiles();
14011
+ _context3.next = 61;
14006
14012
  return safeFlushTelemetry(sentryClient);
14007
- case 59:
14008
- return _context3.finish(53);
14009
- case 60:
14013
+ case 61:
14014
+ return _context3.finish(54);
14015
+ case 62:
14010
14016
  case "end":
14011
14017
  return _context3.stop();
14012
14018
  }
14013
- }, _callee3, null, [[1, 49, 53, 60]]);
14019
+ }, _callee3, null, [[2, 50, 54, 62]]);
14014
14020
  }));
14015
14021
  return function (_x) {
14016
14022
  return _ref2.apply(this, arguments);
@@ -14257,26 +14263,30 @@ function releaseManagementPlugin(_ref) {
14257
14263
  sentryHub = _ref.sentryHub,
14258
14264
  sentryClient = _ref.sentryClient,
14259
14265
  sentryCliOptions = _ref.sentryCliOptions,
14260
- freeDependencyOnSourcemapFiles = _ref.freeDependencyOnSourcemapFiles;
14266
+ createDependencyOnSourcemapFiles = _ref.createDependencyOnSourcemapFiles;
14267
+ var freeGlobalDependencyOnSourcemapFiles = createDependencyOnSourcemapFiles();
14261
14268
  return {
14262
14269
  name: "sentry-debug-id-upload-plugin",
14263
14270
  writeBundle: function writeBundle() {
14264
14271
  return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
14265
- var cliInstance, normalizedInclude;
14272
+ var freeWriteBundleInvocationDependencyOnSourcemapFiles, cliInstance, normalizedInclude;
14266
14273
  return _regeneratorRuntime().wrap(function _callee$(_context) {
14267
14274
  while (1) switch (_context.prev = _context.next) {
14268
14275
  case 0:
14269
- _context.prev = 0;
14276
+ // It is possible that this writeBundle hook is called multiple times in one build (for example when reusing the plugin, or when using build tooling like `@vitejs/plugin-legacy`)
14277
+ // Therefore we need to actually register the execution of this hook as dependency on the sourcemap files.
14278
+ freeWriteBundleInvocationDependencyOnSourcemapFiles = createDependencyOnSourcemapFiles();
14279
+ _context.prev = 1;
14270
14280
  cliInstance = new SentryCli(null, sentryCliOptions);
14271
14281
  if (!shouldCreateRelease) {
14272
- _context.next = 5;
14282
+ _context.next = 6;
14273
14283
  break;
14274
14284
  }
14275
- _context.next = 5;
14285
+ _context.next = 6;
14276
14286
  return cliInstance.releases["new"](releaseName);
14277
- case 5:
14287
+ case 6:
14278
14288
  if (!include) {
14279
- _context.next = 9;
14289
+ _context.next = 10;
14280
14290
  break;
14281
14291
  }
14282
14292
  normalizedInclude = arrayify$1(include).map(function (includeItem) {
@@ -14293,52 +14303,53 @@ function releaseManagementPlugin(_ref) {
14293
14303
  ignore: includeEntry.ignore ? arrayify$1(includeEntry.ignore) : undefined
14294
14304
  });
14295
14305
  });
14296
- _context.next = 9;
14306
+ _context.next = 10;
14297
14307
  return cliInstance.releases.uploadSourceMaps(releaseName, {
14298
14308
  include: normalizedInclude,
14299
14309
  dist: dist
14300
14310
  });
14301
- case 9:
14311
+ case 10:
14302
14312
  if (!setCommitsOption) {
14303
- _context.next = 12;
14313
+ _context.next = 13;
14304
14314
  break;
14305
14315
  }
14306
- _context.next = 12;
14316
+ _context.next = 13;
14307
14317
  return cliInstance.releases.setCommits(releaseName, setCommitsOption);
14308
- case 12:
14318
+ case 13:
14309
14319
  if (!shouldFinalizeRelease) {
14310
- _context.next = 15;
14320
+ _context.next = 16;
14311
14321
  break;
14312
14322
  }
14313
- _context.next = 15;
14323
+ _context.next = 16;
14314
14324
  return cliInstance.releases.finalize(releaseName);
14315
- case 15:
14325
+ case 16:
14316
14326
  if (!deployOptions) {
14317
- _context.next = 18;
14327
+ _context.next = 19;
14318
14328
  break;
14319
14329
  }
14320
- _context.next = 18;
14330
+ _context.next = 19;
14321
14331
  return cliInstance.releases.newDeploy(releaseName, deployOptions);
14322
- case 18:
14323
- _context.next = 26;
14332
+ case 19:
14333
+ _context.next = 27;
14324
14334
  break;
14325
- case 20:
14326
- _context.prev = 20;
14327
- _context.t0 = _context["catch"](0);
14335
+ case 21:
14336
+ _context.prev = 21;
14337
+ _context.t0 = _context["catch"](1);
14328
14338
  sentryHub.captureException('Error in "releaseManagementPlugin" writeBundle hook');
14329
- _context.next = 25;
14339
+ _context.next = 26;
14330
14340
  return safeFlushTelemetry(sentryClient);
14331
- case 25:
14332
- handleRecoverableError(_context.t0);
14333
14341
  case 26:
14334
- _context.prev = 26;
14335
- freeDependencyOnSourcemapFiles();
14336
- return _context.finish(26);
14337
- case 29:
14342
+ handleRecoverableError(_context.t0);
14343
+ case 27:
14344
+ _context.prev = 27;
14345
+ freeGlobalDependencyOnSourcemapFiles();
14346
+ freeWriteBundleInvocationDependencyOnSourcemapFiles();
14347
+ return _context.finish(27);
14348
+ case 31:
14338
14349
  case "end":
14339
14350
  return _context.stop();
14340
14351
  }
14341
- }, _callee, null, [[0, 20, 26, 29]]);
14352
+ }, _callee, null, [[1, 21, 27, 31]]);
14342
14353
  }))();
14343
14354
  }
14344
14355
  };
@@ -14429,7 +14440,7 @@ function fileDeletionPlugin(_ref) {
14429
14440
  sentryHub = _ref.sentryHub,
14430
14441
  sentryClient = _ref.sentryClient,
14431
14442
  filesToDeleteAfterUpload = _ref.filesToDeleteAfterUpload,
14432
- dependenciesAreFreedPromise = _ref.dependenciesAreFreedPromise,
14443
+ waitUntilSourcemapFileDependenciesAreFreed = _ref.waitUntilSourcemapFileDependenciesAreFreed,
14433
14444
  logger = _ref.logger;
14434
14445
  return {
14435
14446
  name: "sentry-file-deletion-plugin",
@@ -14453,7 +14464,7 @@ function fileDeletionPlugin(_ref) {
14453
14464
  filePathsToDelete = _context.sent;
14454
14465
  logger.debug("Waiting for dependencies on generated files to be freed before deleting...");
14455
14466
  _context.next = 8;
14456
- return dependenciesAreFreedPromise;
14467
+ return waitUntilSourcemapFileDependenciesAreFreed();
14457
14468
  case 8:
14458
14469
  filePathsToDelete.forEach(function (filePathToDelete) {
14459
14470
  logger.debug("Deleting asset after upload: ".concat(filePathToDelete));
@@ -14522,7 +14533,7 @@ function sentryUnpluginFactory(_ref) {
14522
14533
  debugIdUploadPlugin = _ref.debugIdUploadPlugin,
14523
14534
  bundleSizeOptimizationsPlugin = _ref.bundleSizeOptimizationsPlugin;
14524
14535
  return createUnplugin(function () {
14525
- var _userOptions$_metaOpt, _userOptions$_metaOpt2, _userOptions$silent, _userOptions$debug, _userOptions$_experim, _options$sourcemaps$f, _options$sourcemaps4, _options$sourcemaps5;
14536
+ var _userOptions$_metaOpt, _userOptions$_metaOpt2, _userOptions$silent, _userOptions$debug, _userOptions$_experim, _options$sourcemaps, _options$sourcemaps$f, _options$sourcemaps5, _options$sourcemaps6;
14526
14537
  var userOptions = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
14527
14538
  var unpluginMetaContext = arguments.length > 1 ? arguments[1] : undefined;
14528
14539
  var logger = createLogger({
@@ -14572,7 +14583,7 @@ function sentryUnpluginFactory(_ref) {
14572
14583
  });
14573
14584
 
14574
14585
  // Set the User-Agent that Sentry CLI will use when interacting with Sentry
14575
- process.env["SENTRY_PIPELINE"] = "".concat(unpluginMetaContext.framework, "-plugin/", "2.20.1");
14586
+ process.env["SENTRY_PIPELINE"] = "".concat(unpluginMetaContext.framework, "-plugin/", "2.21.1");
14576
14587
  function handleRecoverableError(unknownError) {
14577
14588
  sentrySession.status = "abnormal";
14578
14589
  try {
@@ -14633,6 +14644,9 @@ function sentryUnpluginFactory(_ref) {
14633
14644
 
14634
14645
  /**
14635
14646
  * Returns a Promise that resolves when all the currently active dependencies are freed again.
14647
+ *
14648
+ * It is very important that this function is called as late as possible before wanting to await the Promise to give
14649
+ * the dependency producers as much time as possible to register themselves.
14636
14650
  */
14637
14651
  function waitUntilSourcemapFileDependenciesAreFreed() {
14638
14652
  return new Promise(function (resolve) {
@@ -14708,7 +14722,9 @@ function sentryUnpluginFactory(_ref) {
14708
14722
  var _injectionCode2 = generateModuleMetadataInjectorCode(metadata);
14709
14723
  plugins.push(moduleMetadataInjectionPlugin(_injectionCode2));
14710
14724
  }
14711
- if (!options.release.name) {
14725
+ if ((_options$sourcemaps = options.sourcemaps) !== null && _options$sourcemaps !== void 0 && _options$sourcemaps.disable) {
14726
+ logger.debug("Source map upload was disabled. Will not upload sourcemaps.");
14727
+ } else if (!options.release.name) {
14712
14728
  logger.warn("No release name provided. Will not create release. Please set the `release.name` option to identify your release.");
14713
14729
  } else if (!options.authToken) {
14714
14730
  logger.warn("No auth token provided. Will not create release. Please set the `authToken` option. You can find information on how to generate a Sentry auth token here: https://docs.sentry.io/api/auth/");
@@ -14738,7 +14754,7 @@ function sentryUnpluginFactory(_ref) {
14738
14754
  vcsRemote: options.release.vcsRemote,
14739
14755
  headers: options.headers
14740
14756
  },
14741
- freeDependencyOnSourcemapFiles: createDependencyOnSourcemapFiles()
14757
+ createDependencyOnSourcemapFiles: createDependencyOnSourcemapFiles
14742
14758
  }));
14743
14759
  }
14744
14760
  plugins.push(debugIdInjectionPlugin(logger));
@@ -14749,16 +14765,16 @@ function sentryUnpluginFactory(_ref) {
14749
14765
  } else if (!options.project) {
14750
14766
  logger.warn("No project provided. Will not upload source maps. Please set the `project` option to your Sentry project slug.");
14751
14767
  } else {
14752
- var _options$sourcemaps, _options$sourcemaps2, _options$sourcemaps3;
14768
+ var _options$sourcemaps2, _options$sourcemaps3, _options$sourcemaps4;
14753
14769
  plugins.push(debugIdUploadPlugin(createDebugIdUploadFunction({
14754
- assets: (_options$sourcemaps = options.sourcemaps) === null || _options$sourcemaps === void 0 ? void 0 : _options$sourcemaps.assets,
14755
- ignore: (_options$sourcemaps2 = options.sourcemaps) === null || _options$sourcemaps2 === void 0 ? void 0 : _options$sourcemaps2.ignore,
14756
- freeDependencyOnSourcemapFiles: createDependencyOnSourcemapFiles(),
14770
+ assets: (_options$sourcemaps2 = options.sourcemaps) === null || _options$sourcemaps2 === void 0 ? void 0 : _options$sourcemaps2.assets,
14771
+ ignore: (_options$sourcemaps3 = options.sourcemaps) === null || _options$sourcemaps3 === void 0 ? void 0 : _options$sourcemaps3.ignore,
14772
+ createDependencyOnSourcemapFiles: createDependencyOnSourcemapFiles,
14757
14773
  dist: options.release.dist,
14758
14774
  releaseName: options.release.name,
14759
14775
  logger: logger,
14760
14776
  handleRecoverableError: handleRecoverableError,
14761
- rewriteSourcesHook: (_options$sourcemaps3 = options.sourcemaps) === null || _options$sourcemaps3 === void 0 ? void 0 : _options$sourcemaps3.rewriteSources,
14777
+ rewriteSourcesHook: (_options$sourcemaps4 = options.sourcemaps) === null || _options$sourcemaps4 === void 0 ? void 0 : _options$sourcemaps4.rewriteSources,
14762
14778
  sentryHub: sentryHub,
14763
14779
  sentryClient: sentryClient,
14764
14780
  sentryCliOptions: {
@@ -14782,10 +14798,8 @@ function sentryUnpluginFactory(_ref) {
14782
14798
  }
14783
14799
  }
14784
14800
  plugins.push(fileDeletionPlugin({
14785
- // It is very important that this is only called after all other dependencies have been created with `createDependencyOnSourcemapFiles`.
14786
- // Ideally, we always register this plugin last.
14787
- dependenciesAreFreedPromise: waitUntilSourcemapFileDependenciesAreFreed(),
14788
- filesToDeleteAfterUpload: (_options$sourcemaps$f = (_options$sourcemaps4 = options.sourcemaps) === null || _options$sourcemaps4 === void 0 ? void 0 : _options$sourcemaps4.filesToDeleteAfterUpload) !== null && _options$sourcemaps$f !== void 0 ? _options$sourcemaps$f : (_options$sourcemaps5 = options.sourcemaps) === null || _options$sourcemaps5 === void 0 ? void 0 : _options$sourcemaps5.deleteFilesAfterUpload,
14801
+ waitUntilSourcemapFileDependenciesAreFreed: waitUntilSourcemapFileDependenciesAreFreed,
14802
+ filesToDeleteAfterUpload: (_options$sourcemaps$f = (_options$sourcemaps5 = options.sourcemaps) === null || _options$sourcemaps5 === void 0 ? void 0 : _options$sourcemaps5.filesToDeleteAfterUpload) !== null && _options$sourcemaps$f !== void 0 ? _options$sourcemaps$f : (_options$sourcemaps6 = options.sourcemaps) === null || _options$sourcemaps6 === void 0 ? void 0 : _options$sourcemaps6.deleteFilesAfterUpload,
14789
14803
  logger: logger,
14790
14804
  handleRecoverableError: handleRecoverableError,
14791
14805
  sentryHub: sentryHub,