From 59eb407b6670db1f731a44d44d9ab8ab846b1878 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren?= Date: Fri, 15 Nov 2024 21:10:49 -0600 Subject: [PATCH] Avoid sorting the JS_TOPLEVEL list during build, preserving the original order e.g. keeping Observable as the first entry, as the other files depend on it. --- tools/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/build.sh b/tools/build.sh index 7f96fb87a..32a941c16 100755 --- a/tools/build.sh +++ b/tools/build.sh @@ -199,7 +199,7 @@ done # prepare bundle lists LIST_JS_COMMON=$(echo $LIST_JS_COMMON | tr " " "\n" | sort -ur) # sort common bundle reverse for nicer order -LIST_JS_TOPLEVEL=$(echo $LIST_JS_TOPLEVEL | tr " " "\n" | sort -u) +LIST_JS_TOPLEVEL=$(echo $LIST_JS_TOPLEVEL | tr " " "\n" | awk '!x[$0]++') LIST_JS_BITCOIN=$(echo $LIST_JS_BITCOIN | tr " " "\n" | sort -u) LIST_JS_POLYGON=$(echo $LIST_JS_POLYGON | tr " " "\n" | sort -u) # for CSS the order is very important, so sorting is not possible, thus we have to put the list here manually