You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
be able to reconstruct the original file from sourcemap. something like the following:
smap, err:=sourcemap.Parse(mapURL, b)
iferr!=nil {
panic(err)
}
originalFile, err:=smap.Reconstruct()
or, for the purpose of not loading a whole un-minified file into memory, we can pass in an int denoting number of lines you want reconstructed when you call Source(). Then, return a slice containing n strings which each represent a like. maybe something like this:
be able to reconstruct the original file from sourcemap. something like the following:
or, for the purpose of not loading a whole un-minified file into memory, we can pass in an int denoting number of lines you want reconstructed when you call
Source()
. Then, return a slice containing n strings which each represent a like. maybe something like this:originalLines would then have 5 lines above the mapped line, the mapped line, and 4 lines below, like so:
The text was updated successfully, but these errors were encountered: