So, if we use Composer to bring in PHP files, it all works nicely, and gets autoloaded, great.
But what about when we want to bring in something that is all JS, say video.js for TimedMediaHandler ala T150128 ?
Well, as it stands, we can't
We can potentially have multiple vendor repos, whether under the extension, or in the root of MW.... But we have no way of knowing where these are programmatically, so we can build ResourceLoader modules etc -- https://github.com/wikimedia/mediawiki-extensions-TimedMediaHandler/blob/f8c50d4/TimedMediaHandler.hooks.php#L82-L120
I suspect there'll be usages in future where this has some benefit for other JS only packagist/composer dependency too