ResourceLoader uses localStorage to cache module code; cached code is loaded via eval(), which means that the browser cannot associate it with a source URL. This will be eventually fixed by source maps, but as a temporary measure, we could use sourceURL directives to maintain that association.
14:29 <Krinkle> we can construct them client-side and put anything in there, even wgVersion, in addition (or instead) of module.version 14:30 <Krinkle> e.g. vm://mw-loader-store/{wgVersion}/{module}.js 14:30 <Krinkle> I haven't tested browser support on that though