@jsenv/core 27.0.0-alpha.60 → 27.0.0-alpha.63

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.
@@ -379,14 +379,18 @@ const dequeue = async () => {
379
379
  const callbacks = pendingCallbacks.slice();
380
380
  pendingCallbacks = [];
381
381
  running = true;
382
- await callbacks.reduce(async (previous, callback) => {
383
- await previous;
384
- await callback();
385
- }, Promise.resolve());
386
- running = false;
387
382
 
388
- if (pendingCallbacks.length) {
389
- dequeue();
383
+ try {
384
+ await callbacks.reduce(async (previous, callback) => {
385
+ await previous;
386
+ await callback();
387
+ }, Promise.resolve());
388
+ } finally {
389
+ running = false;
390
+
391
+ if (pendingCallbacks.length) {
392
+ dequeue();
393
+ }
390
394
  }
391
395
  };
392
396
 
@@ -445,11 +449,11 @@ const applyHotReload = async ({
445
449
  // if (!urlHotMeta) {return }
446
450
 
447
451
  if (type === "prune") {
448
- console.group("[jsenv] prune: ".concat(boundary, " (inside ").concat(acceptedBy, ")"));
452
+ console.groupCollapsed("[jsenv] prune: ".concat(boundary, " (inside ").concat(acceptedBy, ")"));
449
453
  } else if (acceptedBy === boundary) {
450
- console.group("[jsenv] hot reloading: ".concat(boundary));
454
+ console.groupCollapsed("[jsenv] hot reloading: ".concat(boundary));
451
455
  } else {
452
- console.group("[jsenv] hot reloading: ".concat(acceptedBy, " inside ").concat(boundary));
456
+ console.groupCollapsed("[jsenv] hot reloading: ".concat(acceptedBy, " inside ").concat(boundary));
453
457
  }
454
458
 
455
459
  if (urlHotMeta && urlHotMeta.disposeCallback) {