Can babel pretty-print the source map file?


#1

Does babel have an option to pretty-print the source map file itself?

When using the CLI to compile and create a sourcemap, as babel --sourcemaps true --out-file compiled.js input.js, the compiled.js.map file is one long line.

At present I manipulate the map manually afterward with python -m json.tool < compiled.js.map > pretty.js.map, but it would be helpful if babel could do this directly.

Thank you.