@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.
package/dist/cjs/index.js CHANGED
@@ -13659,7 +13659,7 @@ function createSentryInstance(options, shouldSendTelemetry, bundler) {
13659
13659
  dsn: "https://4c2bae7d9fbc413e8f7385f55c515d51@o1.ingest.sentry.io/6690737",
13660
13660
  tracesSampleRate: 1,
13661
13661
  sampleRate: 1,
13662
- release: "2.20.1",
13662
+ release: "2.21.1",
13663
13663
  integrations: [],
13664
13664
  tracePropagationTargets: ["sentry.io/api"],
13665
13665
  stackParser: defaultStackParser,
@@ -13747,6 +13747,7 @@ function setTelemetryDataOnHub(options, hub, bundler) {
13747
13747
  hub.setTag("custom-error-handler", !!errorHandler);
13748
13748
  hub.setTag("sourcemaps-assets", !!(sourcemaps !== null && sourcemaps !== void 0 && sourcemaps.assets));
13749
13749
  hub.setTag("delete-after-upload", !!(sourcemaps !== null && sourcemaps !== void 0 && sourcemaps.deleteFilesAfterUpload) || !!(sourcemaps !== null && sourcemaps !== void 0 && sourcemaps.filesToDeleteAfterUpload));
13750
+ hub.setTag("sourcemaps-disabled", !!(sourcemaps !== null && sourcemaps !== void 0 && sourcemaps.disable));
13750
13751
  hub.setTag("react-annotate", !!(reactComponentAnnotation !== null && reactComponentAnnotation !== void 0 && reactComponentAnnotation.enabled));
13751
13752
  hub.setTag("node", process.version);
13752
13753
  hub.setTag("platform", process.platform);
@@ -13862,23 +13863,27 @@ function createDebugIdUploadFunction(_ref) {
13862
13863
  sentryClient = _ref.sentryClient,
13863
13864
  sentryCliOptions = _ref.sentryCliOptions,
13864
13865
  rewriteSourcesHook = _ref.rewriteSourcesHook,
13865
- freeDependencyOnSourcemapFiles = _ref.freeDependencyOnSourcemapFiles;
13866
+ createDependencyOnSourcemapFiles = _ref.createDependencyOnSourcemapFiles;
13867
+ var freeGlobalDependencyOnSourcemapFiles = createDependencyOnSourcemapFiles();
13866
13868
  return /*#__PURE__*/function () {
13867
13869
  var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(buildArtifactPaths) {
13868
- var artifactBundleUploadTransaction, folderToCleanUp, mkdtempSpan, tmpUploadFolder, globAssets, globSpan, globResult, debugIdChunkFilePaths, prepareSpan, preparationTasks, workers, worker, workerIndex, files, stats, uploadSize, uploadSpan, cliInstance, cleanupSpan;
13870
+ var artifactBundleUploadTransaction, folderToCleanUp, freeUploadDependencyOnSourcemapFiles, mkdtempSpan, tmpUploadFolder, globAssets, globSpan, globResult, debugIdChunkFilePaths, prepareSpan, preparationTasks, workers, worker, workerIndex, files, stats, uploadSize, uploadSpan, cliInstance, cleanupSpan;
13869
13871
  return _regeneratorRuntime().wrap(function _callee3$(_context3) {
13870
13872
  while (1) switch (_context3.prev = _context3.next) {
13871
13873
  case 0:
13872
13874
  artifactBundleUploadTransaction = sentryHub.startTransaction({
13873
13875
  name: "debug-id-sourcemap-upload"
13874
13876
  });
13875
- _context3.prev = 1;
13877
+ // 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`)
13878
+ // Therefore we need to actually register the execution of this hook as dependency on the sourcemap files.
13879
+ freeUploadDependencyOnSourcemapFiles = createDependencyOnSourcemapFiles();
13880
+ _context3.prev = 2;
13876
13881
  mkdtempSpan = artifactBundleUploadTransaction.startChild({
13877
13882
  description: "mkdtemp"
13878
13883
  });
13879
- _context3.next = 5;
13884
+ _context3.next = 6;
13880
13885
  return fs__default["default"].promises.mkdtemp(path__default["default"].join(os__default["default"].tmpdir(), "sentry-bundler-plugin-upload-"));
13881
- case 5:
13886
+ case 6:
13882
13887
  tmpUploadFolder = _context3.sent;
13883
13888
  mkdtempSpan.finish();
13884
13889
  folderToCleanUp = tmpUploadFolder;
@@ -13891,13 +13896,13 @@ function createDebugIdUploadFunction(_ref) {
13891
13896
  globSpan = artifactBundleUploadTransaction.startChild({
13892
13897
  description: "glob"
13893
13898
  });
13894
- _context3.next = 12;
13899
+ _context3.next = 13;
13895
13900
  return glob.glob(globAssets, {
13896
13901
  absolute: true,
13897
13902
  nodir: true,
13898
13903
  ignore: ignore
13899
13904
  });
13900
- case 12:
13905
+ case 13:
13901
13906
  globResult = _context3.sent;
13902
13907
  globSpan.finish();
13903
13908
  debugIdChunkFilePaths = globResult.filter(function (debugIdChunkFilePath) {
@@ -13906,21 +13911,21 @@ function createDebugIdUploadFunction(_ref) {
13906
13911
  // Ensure order within the files so that {debug-id}-{chunkIndex} coupling is consistent
13907
13912
  debugIdChunkFilePaths.sort();
13908
13913
  if (!(Array.isArray(assets) && assets.length === 0)) {
13909
- _context3.next = 20;
13914
+ _context3.next = 21;
13910
13915
  break;
13911
13916
  }
13912
13917
  logger.debug("Empty `sourcemaps.assets` option provided. Will not upload sourcemaps with debug ID.");
13913
- _context3.next = 47;
13918
+ _context3.next = 48;
13914
13919
  break;
13915
- case 20:
13920
+ case 21:
13916
13921
  if (!(debugIdChunkFilePaths.length === 0)) {
13917
- _context3.next = 24;
13922
+ _context3.next = 25;
13918
13923
  break;
13919
13924
  }
13920
13925
  logger.warn("Didn't find any matching sources for debug ID upload. Please check the `sourcemaps.assets` option.");
13921
- _context3.next = 47;
13926
+ _context3.next = 48;
13922
13927
  break;
13923
- case 24:
13928
+ case 25:
13924
13929
  prepareSpan = artifactBundleUploadTransaction.startChild({
13925
13930
  description: "prepare-bundles"
13926
13931
  }); // Preparing the bundles can be a lot of work and doing it all at once has the potential of nuking the heap so
@@ -13973,20 +13978,20 @@ function createDebugIdUploadFunction(_ref) {
13973
13978
  for (workerIndex = 0; workerIndex < 16; workerIndex++) {
13974
13979
  workers.push(worker());
13975
13980
  }
13976
- _context3.next = 31;
13981
+ _context3.next = 32;
13977
13982
  return Promise.all(workers);
13978
- case 31:
13983
+ case 32:
13979
13984
  prepareSpan.finish();
13980
- _context3.next = 34;
13985
+ _context3.next = 35;
13981
13986
  return fs__default["default"].promises.readdir(tmpUploadFolder);
13982
- case 34:
13987
+ case 35:
13983
13988
  files = _context3.sent;
13984
13989
  stats = files.map(function (file) {
13985
13990
  return fs__default["default"].promises.stat(path__default["default"].join(tmpUploadFolder, file));
13986
13991
  });
13987
- _context3.next = 38;
13992
+ _context3.next = 39;
13988
13993
  return Promise.all(stats);
13989
- case 38:
13994
+ case 39:
13990
13995
  uploadSize = _context3.sent.reduce(function (accumulator, _ref5) {
13991
13996
  var size = _ref5.size;
13992
13997
  return accumulator + size;
@@ -14003,7 +14008,7 @@ function createDebugIdUploadFunction(_ref) {
14003
14008
  baggage: dynamicSamplingContextToSentryBaggageHeader(artifactBundleUploadTransaction.getDynamicSamplingContext())
14004
14009
  }, sentryCliOptions.headers)
14005
14010
  }));
14006
- _context3.next = 45;
14011
+ _context3.next = 46;
14007
14012
  return cliInstance.releases.uploadSourceMaps(releaseName !== null && releaseName !== void 0 ? releaseName : "undefined",
14008
14013
  // unfortunetly this needs a value for now but it will not matter since debug IDs overpower releases anyhow
14009
14014
  {
@@ -14014,22 +14019,22 @@ function createDebugIdUploadFunction(_ref) {
14014
14019
  }],
14015
14020
  useArtifactBundle: true
14016
14021
  });
14017
- case 45:
14022
+ case 46:
14018
14023
  uploadSpan.finish();
14019
14024
  logger.info("Successfully uploaded source maps to Sentry");
14020
- case 47:
14021
- _context3.next = 53;
14025
+ case 48:
14026
+ _context3.next = 54;
14022
14027
  break;
14023
- case 49:
14024
- _context3.prev = 49;
14025
- _context3.t0 = _context3["catch"](1);
14028
+ case 50:
14029
+ _context3.prev = 50;
14030
+ _context3.t0 = _context3["catch"](2);
14026
14031
  sentryHub.withScope(function (scope) {
14027
14032
  scope.setSpan(artifactBundleUploadTransaction);
14028
14033
  sentryHub.captureException('Error in "debugIdUploadPlugin" writeBundle hook');
14029
14034
  });
14030
14035
  handleRecoverableError(_context3.t0);
14031
- case 53:
14032
- _context3.prev = 53;
14036
+ case 54:
14037
+ _context3.prev = 54;
14033
14038
  if (folderToCleanUp) {
14034
14039
  cleanupSpan = artifactBundleUploadTransaction.startChild({
14035
14040
  description: "cleanup"
@@ -14041,16 +14046,17 @@ function createDebugIdUploadFunction(_ref) {
14041
14046
  cleanupSpan.finish();
14042
14047
  }
14043
14048
  artifactBundleUploadTransaction.finish();
14044
- freeDependencyOnSourcemapFiles();
14045
- _context3.next = 59;
14049
+ freeGlobalDependencyOnSourcemapFiles();
14050
+ freeUploadDependencyOnSourcemapFiles();
14051
+ _context3.next = 61;
14046
14052
  return safeFlushTelemetry(sentryClient);
14047
- case 59:
14048
- return _context3.finish(53);
14049
- case 60:
14053
+ case 61:
14054
+ return _context3.finish(54);
14055
+ case 62:
14050
14056
  case "end":
14051
14057
  return _context3.stop();
14052
14058
  }
14053
- }, _callee3, null, [[1, 49, 53, 60]]);
14059
+ }, _callee3, null, [[2, 50, 54, 62]]);
14054
14060
  }));
14055
14061
  return function (_x) {
14056
14062
  return _ref2.apply(this, arguments);
@@ -14297,26 +14303,30 @@ function releaseManagementPlugin(_ref) {
14297
14303
  sentryHub = _ref.sentryHub,
14298
14304
  sentryClient = _ref.sentryClient,
14299
14305
  sentryCliOptions = _ref.sentryCliOptions,
14300
- freeDependencyOnSourcemapFiles = _ref.freeDependencyOnSourcemapFiles;
14306
+ createDependencyOnSourcemapFiles = _ref.createDependencyOnSourcemapFiles;
14307
+ var freeGlobalDependencyOnSourcemapFiles = createDependencyOnSourcemapFiles();
14301
14308
  return {
14302
14309
  name: "sentry-debug-id-upload-plugin",
14303
14310
  writeBundle: function writeBundle() {
14304
14311
  return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
14305
- var cliInstance, normalizedInclude;
14312
+ var freeWriteBundleInvocationDependencyOnSourcemapFiles, cliInstance, normalizedInclude;
14306
14313
  return _regeneratorRuntime().wrap(function _callee$(_context) {
14307
14314
  while (1) switch (_context.prev = _context.next) {
14308
14315
  case 0:
14309
- _context.prev = 0;
14316
+ // 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`)
14317
+ // Therefore we need to actually register the execution of this hook as dependency on the sourcemap files.
14318
+ freeWriteBundleInvocationDependencyOnSourcemapFiles = createDependencyOnSourcemapFiles();
14319
+ _context.prev = 1;
14310
14320
  cliInstance = new SentryCli__default["default"](null, sentryCliOptions);
14311
14321
  if (!shouldCreateRelease) {
14312
- _context.next = 5;
14322
+ _context.next = 6;
14313
14323
  break;
14314
14324
  }
14315
- _context.next = 5;
14325
+ _context.next = 6;
14316
14326
  return cliInstance.releases["new"](releaseName);
14317
- case 5:
14327
+ case 6:
14318
14328
  if (!include) {
14319
- _context.next = 9;
14329
+ _context.next = 10;
14320
14330
  break;
14321
14331
  }
14322
14332
  normalizedInclude = arrayify$1(include).map(function (includeItem) {
@@ -14333,52 +14343,53 @@ function releaseManagementPlugin(_ref) {
14333
14343
  ignore: includeEntry.ignore ? arrayify$1(includeEntry.ignore) : undefined
14334
14344
  });
14335
14345
  });
14336
- _context.next = 9;
14346
+ _context.next = 10;
14337
14347
  return cliInstance.releases.uploadSourceMaps(releaseName, {
14338
14348
  include: normalizedInclude,
14339
14349
  dist: dist
14340
14350
  });
14341
- case 9:
14351
+ case 10:
14342
14352
  if (!setCommitsOption) {
14343
- _context.next = 12;
14353
+ _context.next = 13;
14344
14354
  break;
14345
14355
  }
14346
- _context.next = 12;
14356
+ _context.next = 13;
14347
14357
  return cliInstance.releases.setCommits(releaseName, setCommitsOption);
14348
- case 12:
14358
+ case 13:
14349
14359
  if (!shouldFinalizeRelease) {
14350
- _context.next = 15;
14360
+ _context.next = 16;
14351
14361
  break;
14352
14362
  }
14353
- _context.next = 15;
14363
+ _context.next = 16;
14354
14364
  return cliInstance.releases.finalize(releaseName);
14355
- case 15:
14365
+ case 16:
14356
14366
  if (!deployOptions) {
14357
- _context.next = 18;
14367
+ _context.next = 19;
14358
14368
  break;
14359
14369
  }
14360
- _context.next = 18;
14370
+ _context.next = 19;
14361
14371
  return cliInstance.releases.newDeploy(releaseName, deployOptions);
14362
- case 18:
14363
- _context.next = 26;
14372
+ case 19:
14373
+ _context.next = 27;
14364
14374
  break;
14365
- case 20:
14366
- _context.prev = 20;
14367
- _context.t0 = _context["catch"](0);
14375
+ case 21:
14376
+ _context.prev = 21;
14377
+ _context.t0 = _context["catch"](1);
14368
14378
  sentryHub.captureException('Error in "releaseManagementPlugin" writeBundle hook');
14369
- _context.next = 25;
14379
+ _context.next = 26;
14370
14380
  return safeFlushTelemetry(sentryClient);
14371
- case 25:
14372
- handleRecoverableError(_context.t0);
14373
14381
  case 26:
14374
- _context.prev = 26;
14375
- freeDependencyOnSourcemapFiles();
14376
- return _context.finish(26);
14377
- case 29:
14382
+ handleRecoverableError(_context.t0);
14383
+ case 27:
14384
+ _context.prev = 27;
14385
+ freeGlobalDependencyOnSourcemapFiles();
14386
+ freeWriteBundleInvocationDependencyOnSourcemapFiles();
14387
+ return _context.finish(27);
14388
+ case 31:
14378
14389
  case "end":
14379
14390
  return _context.stop();
14380
14391
  }
14381
- }, _callee, null, [[0, 20, 26, 29]]);
14392
+ }, _callee, null, [[1, 21, 27, 31]]);
14382
14393
  }))();
14383
14394
  }
14384
14395
  };
@@ -14469,7 +14480,7 @@ function fileDeletionPlugin(_ref) {
14469
14480
  sentryHub = _ref.sentryHub,
14470
14481
  sentryClient = _ref.sentryClient,
14471
14482
  filesToDeleteAfterUpload = _ref.filesToDeleteAfterUpload,
14472
- dependenciesAreFreedPromise = _ref.dependenciesAreFreedPromise,
14483
+ waitUntilSourcemapFileDependenciesAreFreed = _ref.waitUntilSourcemapFileDependenciesAreFreed,
14473
14484
  logger = _ref.logger;
14474
14485
  return {
14475
14486
  name: "sentry-file-deletion-plugin",
@@ -14493,7 +14504,7 @@ function fileDeletionPlugin(_ref) {
14493
14504
  filePathsToDelete = _context.sent;
14494
14505
  logger.debug("Waiting for dependencies on generated files to be freed before deleting...");
14495
14506
  _context.next = 8;
14496
- return dependenciesAreFreedPromise;
14507
+ return waitUntilSourcemapFileDependenciesAreFreed();
14497
14508
  case 8:
14498
14509
  filePathsToDelete.forEach(function (filePathToDelete) {
14499
14510
  logger.debug("Deleting asset after upload: ".concat(filePathToDelete));
@@ -14562,7 +14573,7 @@ function sentryUnpluginFactory(_ref) {
14562
14573
  debugIdUploadPlugin = _ref.debugIdUploadPlugin,
14563
14574
  bundleSizeOptimizationsPlugin = _ref.bundleSizeOptimizationsPlugin;
14564
14575
  return unplugin.createUnplugin(function () {
14565
- var _userOptions$_metaOpt, _userOptions$_metaOpt2, _userOptions$silent, _userOptions$debug, _userOptions$_experim, _options$sourcemaps$f, _options$sourcemaps4, _options$sourcemaps5;
14576
+ var _userOptions$_metaOpt, _userOptions$_metaOpt2, _userOptions$silent, _userOptions$debug, _userOptions$_experim, _options$sourcemaps, _options$sourcemaps$f, _options$sourcemaps5, _options$sourcemaps6;
14566
14577
  var userOptions = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
14567
14578
  var unpluginMetaContext = arguments.length > 1 ? arguments[1] : undefined;
14568
14579
  var logger = createLogger({
@@ -14612,7 +14623,7 @@ function sentryUnpluginFactory(_ref) {
14612
14623
  });
14613
14624
 
14614
14625
  // Set the User-Agent that Sentry CLI will use when interacting with Sentry
14615
- process.env["SENTRY_PIPELINE"] = "".concat(unpluginMetaContext.framework, "-plugin/", "2.20.1");
14626
+ process.env["SENTRY_PIPELINE"] = "".concat(unpluginMetaContext.framework, "-plugin/", "2.21.1");
14616
14627
  function handleRecoverableError(unknownError) {
14617
14628
  sentrySession.status = "abnormal";
14618
14629
  try {
@@ -14673,6 +14684,9 @@ function sentryUnpluginFactory(_ref) {
14673
14684
 
14674
14685
  /**
14675
14686
  * Returns a Promise that resolves when all the currently active dependencies are freed again.
14687
+ *
14688
+ * It is very important that this function is called as late as possible before wanting to await the Promise to give
14689
+ * the dependency producers as much time as possible to register themselves.
14676
14690
  */
14677
14691
  function waitUntilSourcemapFileDependenciesAreFreed() {
14678
14692
  return new Promise(function (resolve) {
@@ -14748,7 +14762,9 @@ function sentryUnpluginFactory(_ref) {
14748
14762
  var _injectionCode2 = generateModuleMetadataInjectorCode(metadata);
14749
14763
  plugins.push(moduleMetadataInjectionPlugin(_injectionCode2));
14750
14764
  }
14751
- if (!options.release.name) {
14765
+ if ((_options$sourcemaps = options.sourcemaps) !== null && _options$sourcemaps !== void 0 && _options$sourcemaps.disable) {
14766
+ logger.debug("Source map upload was disabled. Will not upload sourcemaps.");
14767
+ } else if (!options.release.name) {
14752
14768
  logger.warn("No release name provided. Will not create release. Please set the `release.name` option to identify your release.");
14753
14769
  } else if (!options.authToken) {
14754
14770
  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/");
@@ -14778,7 +14794,7 @@ function sentryUnpluginFactory(_ref) {
14778
14794
  vcsRemote: options.release.vcsRemote,
14779
14795
  headers: options.headers
14780
14796
  },
14781
- freeDependencyOnSourcemapFiles: createDependencyOnSourcemapFiles()
14797
+ createDependencyOnSourcemapFiles: createDependencyOnSourcemapFiles
14782
14798
  }));
14783
14799
  }
14784
14800
  plugins.push(debugIdInjectionPlugin(logger));
@@ -14789,16 +14805,16 @@ function sentryUnpluginFactory(_ref) {
14789
14805
  } else if (!options.project) {
14790
14806
  logger.warn("No project provided. Will not upload source maps. Please set the `project` option to your Sentry project slug.");
14791
14807
  } else {
14792
- var _options$sourcemaps, _options$sourcemaps2, _options$sourcemaps3;
14808
+ var _options$sourcemaps2, _options$sourcemaps3, _options$sourcemaps4;
14793
14809
  plugins.push(debugIdUploadPlugin(createDebugIdUploadFunction({
14794
- assets: (_options$sourcemaps = options.sourcemaps) === null || _options$sourcemaps === void 0 ? void 0 : _options$sourcemaps.assets,
14795
- ignore: (_options$sourcemaps2 = options.sourcemaps) === null || _options$sourcemaps2 === void 0 ? void 0 : _options$sourcemaps2.ignore,
14796
- freeDependencyOnSourcemapFiles: createDependencyOnSourcemapFiles(),
14810
+ assets: (_options$sourcemaps2 = options.sourcemaps) === null || _options$sourcemaps2 === void 0 ? void 0 : _options$sourcemaps2.assets,
14811
+ ignore: (_options$sourcemaps3 = options.sourcemaps) === null || _options$sourcemaps3 === void 0 ? void 0 : _options$sourcemaps3.ignore,
14812
+ createDependencyOnSourcemapFiles: createDependencyOnSourcemapFiles,
14797
14813
  dist: options.release.dist,
14798
14814
  releaseName: options.release.name,
14799
14815
  logger: logger,
14800
14816
  handleRecoverableError: handleRecoverableError,
14801
- rewriteSourcesHook: (_options$sourcemaps3 = options.sourcemaps) === null || _options$sourcemaps3 === void 0 ? void 0 : _options$sourcemaps3.rewriteSources,
14817
+ rewriteSourcesHook: (_options$sourcemaps4 = options.sourcemaps) === null || _options$sourcemaps4 === void 0 ? void 0 : _options$sourcemaps4.rewriteSources,
14802
14818
  sentryHub: sentryHub,
14803
14819
  sentryClient: sentryClient,
14804
14820
  sentryCliOptions: {
@@ -14822,10 +14838,8 @@ function sentryUnpluginFactory(_ref) {
14822
14838
  }
14823
14839
  }
14824
14840
  plugins.push(fileDeletionPlugin({
14825
- // It is very important that this is only called after all other dependencies have been created with `createDependencyOnSourcemapFiles`.
14826
- // Ideally, we always register this plugin last.
14827
- dependenciesAreFreedPromise: waitUntilSourcemapFileDependenciesAreFreed(),
14828
- 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,
14841
+ waitUntilSourcemapFileDependenciesAreFreed: waitUntilSourcemapFileDependenciesAreFreed,
14842
+ 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,
14829
14843
  logger: logger,
14830
14844
  handleRecoverableError: handleRecoverableError,
14831
14845
  sentryHub: sentryHub,