]> source.dussan.org Git - jquery.git/commitdiff
Revert "Fix #13983. Switch to //# for sourcemaps."
authorDave Methvin <dave.methvin@gmail.com>
Tue, 2 Jul 2013 20:58:20 +0000 (16:58 -0400)
committerDave Methvin <dave.methvin@gmail.com>
Tue, 2 Jul 2013 20:58:20 +0000 (16:58 -0400)
Per the discussion here:
https://code.google.com/p/chromium/issues/detail?id=256636

Thanks to the Chrome team for the quick response!

This reverts commit d53ddc90c1f119fb9148a553443ef3fbc3f3cc99.

Gruntfile.js
build/release.js

index c170821040c9a50b2e3a715a1698039e8b77eda4..952515b46f05f5e985fe3324f7cd5fc965a08145 100644 (file)
@@ -115,7 +115,7 @@ module.exports = function( grunt ) {
                                                "/*! jQuery v<%= pkg.version %> | " +
                                                "(c) 2005, 2013 jQuery Foundation, Inc. | " +
                                                "jquery.org/license\n" +
-                                               "//# sourceMappingURL=jquery.min.map\n" +
+                                               "//@ sourceMappingURL=jquery.min.map\n" +
                                                "*/\n"
                                }
                        }
index 6ec38777b882df4f0ba00d1e958a9e080a8ab844..886387995c6b76e970c220c0a32cb1b148ab74cf 100644 (file)
@@ -167,10 +167,10 @@ function makeReleaseCopies( next ) {
                        } else if ( /\.min\.js$/.test( releaseFile ) ) {
                                // Minified files point back to the corresponding map;
                                // again assume one big happy directory.
-                               // "//# sourceMappingURL=jquery.min.map"
+                               // "//@ sourceMappingURL=jquery.min.map"
                                text = fs.readFileSync( builtFile, "utf8" )
-                                       .replace( /\/\/# sourceMappingURL=\S+/,
-                                               "//# sourceMappingURL=" + unpathedFile.replace( /\.js$/, ".map" ) );
+                                       .replace( /\/\/@ sourceMappingURL=\S+/,
+                                               "//@ sourceMappingURL=" + unpathedFile.replace( /\.js$/, ".map" ) );
                                fs.writeFileSync( releaseFile, text );
                        } else if ( builtFile !== releaseFile ) {
                                copy( builtFile, releaseFile );