With Move IR compiler, we can generate source map files when compiling. I can’t find the same function in Move lang.
We do produce the source map for modules/scripts within the Move language compiler. However, we don’t currently have an option to serialize these to disk. We will look into adding this option to the compiler.
As a followup, this functionality has been added to the compiler and is now on master. Source maps can now be saved alongside the binaries by passing either the
--source-map flag to the Move compiler.
An example usage of it can be found in the PR that added it as well: https://github.com/libra/libra/pull/3593
Move Runner, it will generate
source map on building