One of the things I had to do in react was to turn off code-splitting to make this work. If vue is doing the same thing and creating many JS files and loading them dynamically as needed, you may need to see if there’s a way to disable that.
If you just have multiple files that you have control over, you can either call that function multiple times or rewrite to get all of the URLs for the files that you know about.