From 1dbffd48ea49ee278454d6b1c632b7ba4bbf1868 Mon Sep 17 00:00:00 2001 From: Matt Robenolt Date: Tue, 21 May 2013 08:46:27 -0600 Subject: [PATCH] SourceMapping pragma has changed to //# See: https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit The spec was updated on May 16th since `//@` was causing some issues with IE. --- bin/uglifyjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/uglifyjs b/bin/uglifyjs index b30b7599..3ac2a44d 100755 --- a/bin/uglifyjs +++ b/bin/uglifyjs @@ -20,7 +20,7 @@ mangling you need to use `-c` and `-m`.\ ") .describe("source-map", "Specify an output file where to generate source map.") .describe("source-map-root", "The path to the original source to be included in the source map.") - .describe("source-map-url", "The path to the source map to be added in //@ sourceMappingURL. Defaults to the value passed with --source-map.") + .describe("source-map-url", "The path to the source map to be added in //# sourceMappingURL. Defaults to the value passed with --source-map.") .describe("in-source-map", "Input source map, useful if you're compressing JS that was generated from some other original code.") .describe("screw-ie8", "Pass this flag if you don't care about full compliance with Internet Explorer 6-8 quirks (by default UglifyJS will try to be IE-proof).") .describe("expr", "Parse a single expression, rather than a program (for parsing JSON)") @@ -309,7 +309,7 @@ async.eachLimit(files, 1, function (file, cb) { if (SOURCE_MAP) { fs.writeFileSync(ARGS.source_map, SOURCE_MAP, "utf8"); - output += "\n/*\n//@ sourceMappingURL=" + (ARGS.source_map_url || ARGS.source_map) + "\n*/"; + output += "\n/*\n//# sourceMappingURL=" + (ARGS.source_map_url || ARGS.source_map) + "\n*/"; } if (OUTPUT_FILE) { -- 2.34.1