Wraps sourceMappingURL in a multiline comment. Fixes #108
authorMatt Robenolt <matt@ydekproductions.com>
Mon, 4 Feb 2013 00:01:01 +0000 (16:01 -0800)
committerMatt Robenolt <matt@ydekproductions.com>
Mon, 4 Feb 2013 00:01:01 +0000 (16:01 -0800)
bin/uglifyjs

index 0feb837..dc9a451 100755 (executable)
@@ -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) {