As Readers Web works on the desktop improvements project, we’d like to keep track of the byte sizes of individual ResourceLoader modules inside Vector in order to avoid any performance regressions.
We've written a Node script that fetches each ResourceLoader module and runs it through the bundlesize library to validate it’s payload size.
https://gerrit.wikimedia.org/r/#/c/mediawiki/skins/Vector/+/602780/
This script can be converted to a MediaWikiIntegrationTest.