From 940b2cbf8b68eb0b446cca0feeb507840c486394 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Fri, 27 Oct 2023 18:50:32 -0300 Subject: upd8: cleanup & new --show-step-summary CLI option --- src/file-size-preloader.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/file-size-preloader.js') diff --git a/src/file-size-preloader.js b/src/file-size-preloader.js index 38e60e67..4eadde7b 100644 --- a/src/file-size-preloader.js +++ b/src/file-size-preloader.js @@ -29,6 +29,8 @@ export default class FileSizePreloader { #loadingPromise = null; #resolveLoadingPromise = null; + hadErrored = false; + loadPaths(...paths) { this.#paths.push(...paths.filter((p) => !this.#paths.includes(p))); return this.#startLoadingPaths(); @@ -67,6 +69,7 @@ export default class FileSizePreloader { // Oops! Discard that path, and don't increment the index before // moving on, since the next path will now be in its place. this.#paths.splice(this.#loadedPathIndex + 1, 1); + this.hasErrored = true; logWarn`Failed to process file size for ${path}: ${error.message}`; return this.#loadNextPath(); } -- cgit 1.3.0-6-gf8a5