Skip to content

Commit

Permalink
Avoid sorting the JS_TOPLEVEL list during build, preserving the origi…
Browse files Browse the repository at this point in the history
…nal order

e.g. keeping Observable as the first entry, as the other files depend on it.
  • Loading branch information
sisou committed Nov 16, 2024
1 parent ef77f72 commit 59eb407
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 59eb407

Please sign in to comment.