The problem we have is that we're trying to build a react native bundle with sourcemap and upload the source map file to sentry while storing the bundle file on user's devices. But the stack trace received on sentry can not find the sourcemap. I've seen there are quite a few other questions related to this, but still the cause is not very clear. Can someone explain a bit how does sentry do the resolving so we may figure out what we did wrongly.
Firstly, I'm curious about how does sentry know the sourceMappingUrl, since the source bundle is only on user's device, sentry won't be able to get the source bundle.
Secondly, if sentry manage to get the sourceMapUrl somehow, how will it match this with the artifacts uploaded? In our case, the sourceMapUrl is something like '~/bundle.map' and the sourcemap uploaded is named '~/bundle.map' also, is this expected?
thanks in advance!