Created
July 8, 2014 16:45
-
-
Save fitzgen/4aa27413d68edf87b597 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var smc = new SourceMapConsumer(theSourceMapJSON); | |
var smg = SourceMapGenerator.fromSourceMap(smc); | |
smc.sources.forEach(function (s) { | |
smg.setSourceContent(s, somehowGetTheSourceContentsOf(s)); | |
}); | |
// This is your modified map. | |
smg.toJSON(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment