The current asset removal functionality does not take into account JS chunks, this PR fixes that. This lead to inaccurate JS chunk file sizes when switching between branches, which I noticed.
@diosmosis as you are on that part again. Could you please check why the tests on PHP8 are failing? It seems to be related to the manipulation of $GLOBALS['MATOMO_PLUGIN_DIRS'] in the tests you had added in #18761 .
@sgiehl should be fixed