source-map-unpack icon indicating copy to clipboard operation
source-map-unpack copied to clipboard

Allow to process all files in a directory

Open aruku opened this issue 4 years ago • 2 comments

First, let me thank you for this tool, it is awesome and it is helping us!

Could it be possible to have it go over all the *.map files in a directory and unpack all of them? Our build outputs a bunch of bundles and chunks.

Thank you!

aruku avatar Mar 30 '21 20:03 aruku

Also, it complains if the target directory already exists, so I have to give it different output directories even though it is unpacking the same source.

aruku avatar Mar 30 '21 20:03 aruku

Do I understand correctly that the structure can be as the following?

/folder-with-maps
     chunk1.js
     chunk1.map
     chunk2.js
     chunk2.map
     chunk3.js
     chunk3.map

and we'd want to do the following

unpack folder-with-unpacked-maps folder-with-maps

Could you provide an example map of the format to experiment with?

pavloko avatar May 30 '22 21:05 pavloko