JS sourcemaps, found an issue, what the heck is the resolutions

So if I have:

myapp-foo.js

I MUST HAVE myapp-foo.map

the sourceMappingURL at the end of the .js file is totally ignored, and it ONLY WORKS if they are LITERALLY named the same thing.

I can’t have myapp-foo.js with:
//# sourceMappingURL=myapp-bar.map

even if myapp-bar.map exists… it MUST be myapp-foo.map

Why is this?

(the issue is that both are filename-md5hash.* where the hashes are different obviously).

Anyone?

Trying the --no-sourcemap-reference option via sentry-cli.

Seems to be helping, but still confused why there is any issue.