]> source.dussan.org Git - jquery.git/commitdiff
Fix #13983. Switch to //# for sourcemaps.
authorDave Methvin <dave.methvin@gmail.com>
Tue, 2 Jul 2013 13:48:40 +0000 (09:48 -0400)
committerDave Methvin <dave.methvin@gmail.com>
Tue, 2 Jul 2013 13:58:16 +0000 (09:58 -0400)
Normally we'd avoid doing this on a patch release, but Chrome Canary is
spewing deprecation warnings already and that's generating bug tickets.
(cherry picked from commit d53ddc90c1f119fb9148a553443ef3fbc3f3cc99)

Gruntfile.js
build/release.js

index 4a024a472d96ae8f1de8daddfc186dc4c9f31e8d..0052f1c84979374941f3085fa3840c84c23e99c5 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 d4161cdbc2956608217c8ccc292b6526ceb77032..8561bdf3af3c2c879121dcb1e28ae64c1c9b1ad0 100644 (file)
@@ -166,10 +166,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 );