[USER] Thanks for your response. I realised that there was something more to that problem that I didn't understand. The incorrect mapping that I was seeing happened when I was exploring a failed React client-side rehydration by following the stack trace in the console. When I tried to reproduce it in a simpler scenario, the dev tools redirected me to the correct source file.

So I deleted my comment, but not fast enough for nobody to notice 😄 Sorry for that. The deleted comment read as follows:

[BLOCK QUOTE].