Does Move lang support source map file?

With Move IR compiler, we can generate source map files when compiling. I can’t find the same function in Move lang.

1 Like

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 -m or --source-map flag to the Move compiler.

An example usage of it can be found in the PR that added it as well:


use Move Runner, it will generate source map on building