Existing Source Map

Mar 11, 2013 at 7:55 PM
Is there a way to minify compiled code (and generate sourcemap) without losing the original sourcemap (like from coffeescript or typescript)? (i.e. somethign similar to uglifyjs' --in-source-map flag)
Mar 11, 2013 at 7:59 PM
As in: take a JS file A and it's existing source map B, and minify it to generate file C and adjusted map D? I hadn't considered that path. Not at the moment, but it sounds like a very useful feature.
Mar 11, 2013 at 8:15 PM
Yes, exactly! That would be incredibly helpful for working with our TypeScript codebase.
Mar 12, 2013 at 10:17 PM
It actually might be even more useful if the source map was read out of the file rather than passed as a parameter.
This piping of multiple maps is not necessary for the codebase we're working on - but would be a really cool feature!


AjaxMin take in FileA, FileB, FileC and produces FileO.
FileA references FileAMap which maps it to FileASource
FileB references FileBMap which maps it to FileBSource
FileC does not have a source map
FileOMap source map will map FileO to FileASource, FileBSource, FileC