From a9af2c9e62b62572cf31c8db14ebd0e71ccbeaaa Mon Sep 17 00:00:00 2001 From: Matt Robenolt Date: Sun, 3 Feb 2013 16:01:01 -0800 Subject: [PATCH] Wraps sourceMappingURL in a multiline comment. Fixes #108 --- bin/uglifyjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.34.1