How to override JS files in 3rd party extensions?

In Yii2 Advanced, I know I can use view => theme => pathMap in components-config to override groups of views (and specific views?) from a 3rd party extensions without modifying said extensions (which would make updating a hassle), but how do I completely override a .js or .css file from an extension?

Am I allowed to bump this? Let’s try.

Not possible? No such luck? Give up?

Try registering it as an asset in the Appasset.php file