improve source-map generation (#3782)

- emit singleton segments to mark generated code from input
This commit is contained in:
Alex Lam S.L
2020-04-16 16:30:25 +01:00
committed by GitHub
parent 38c3bcf9a0
commit 46d142cbf6
7 changed files with 84 additions and 15 deletions

View File

@@ -109,9 +109,12 @@ describe("bin/uglifyjs", function() {
}
var command = [
uglifyjscmd,
"--source-map", "content=" + mapFile,
"--source-map", "includeSources=true",
"--source-map", "url=inline",
"--beautify",
"--source-map", [
"content=" + mapFile,
"includeSources",
"url=inline",
].join(","),
].join(" ");
var child = exec(command, function(err, stdout) {