diff options
author | Mihai Bazon <mihai.bazon@gmail.com> | 2013-02-03 23:44:31 -0800 |
---|---|---|
committer | Mihai Bazon <mihai.bazon@gmail.com> | 2013-02-03 23:44:31 -0800 |
commit | 3a22e917de1b4425255f2db514f30f42c5c6cec6 (patch) | |
tree | feadd62414e4c72e601ca7f2a83f18dff23a5fd1 | |
parent | 31e99cebe74b90a058a8b988e22d727c33efdf80 (diff) | |
parent | a9af2c9e62b62572cf31c8db14ebd0e71ccbeaaa (diff) | |
download | tracifyjs-3a22e917de1b4425255f2db514f30f42c5c6cec6.tar.gz tracifyjs-3a22e917de1b4425255f2db514f30f42c5c6cec6.zip |
Merge pull request #111 from mattrobenolt/safer-sourcemap
Wraps sourceMappingURL in a multiline comment. Fixes #108
-rwxr-xr-x | bin/uglifyjs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/uglifyjs b/bin/uglifyjs index 0feb8370..dc9a4512 100755 --- a/bin/uglifyjs +++ b/bin/uglifyjs @@ -279,7 +279,7 @@ output = output.get(); if (SOURCE_MAP) { fs.writeFileSync(ARGS.source_map, SOURCE_MAP, "utf8"); - output += "\n//@ sourceMappingURL=" + (ARGS.source_map_url || ARGS.source_map); + output += "\n/*\n//@ sourceMappingURL=" + (ARGS.source_map_url || ARGS.source_map) + "\n*/"; } if (OUTPUT_FILE) { |