aboutsummaryrefslogtreecommitdiff
path: root/test/mocha/cli.js
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2020-04-16 16:30:25 +0100
committerGitHub <noreply@github.com>2020-04-16 23:30:25 +0800
commit46d142cbf6f14692063fe52b807955ee52704a7b (patch)
treee47ac1457f5c31006da92831519813e076e8e179 /test/mocha/cli.js
parent38c3bcf9a000a162c9f28f7d92f43702ef48716f (diff)
downloadtracifyjs-46d142cbf6f14692063fe52b807955ee52704a7b.tar.gz
tracifyjs-46d142cbf6f14692063fe52b807955ee52704a7b.zip
improve source-map generation (#3782)
- emit singleton segments to mark generated code from input
Diffstat (limited to 'test/mocha/cli.js')
-rw-r--r--test/mocha/cli.js9
1 files changed, 6 insertions, 3 deletions
diff --git a/test/mocha/cli.js b/test/mocha/cli.js
index 82f76c0d..8642a6b4 100644
--- a/test/mocha/cli.js
+++ b/test/mocha/cli.js
@@ -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) {