From 1fd9c9e6b032d92d411a9f2570f4ce9ca9324080 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tr=C3=A8sAbhi?= <43380238+tresabhi@users.noreply.github.com> Date: Sun, 9 Jun 2024 23:46:35 -0500 Subject: [PATCH] Update discoverIds.ts --- scripts/discoverIds.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/discoverIds.ts b/scripts/discoverIds.ts index fd634a331..dfd6eda8a 100644 --- a/scripts/discoverIds.ts +++ b/scripts/discoverIds.ts @@ -48,7 +48,9 @@ while (chunkIndex < preDiscoveredManifest.chunks) { }); // no spread syntax: https://github.com/oven-sh/bun/issues/11734 - preDiscovered.forEach((id) => !ids.includes(id) && ids.push(id)); + preDiscovered.forEach((id) => { + if (!ids.includes(id)) ids.push(id); + }); console.log( `Pre-discovered ${preDiscovered.length} ids (chunk ${chunkIndex})`,