aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Methvin <dave.methvin@gmail.com>2013-07-02 09:48:40 -0400
committerDave Methvin <dave.methvin@gmail.com>2013-07-02 09:58:16 -0400
commitcfa00353e6c229ee037cef32eb5726334e4e2f2c (patch)
tree101ce5fb1844733f42c835d4954c8ab77b3b54e2
parent48a948f4c04360b4ec9cce5b3b0119b01d4f928f (diff)
downloadjquery-cfa00353e6c229ee037cef32eb5726334e4e2f2c.tar.gz
jquery-cfa00353e6c229ee037cef32eb5726334e4e2f2c.zip
Fix #13983. Switch to //# for sourcemaps.
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)
-rw-r--r--Gruntfile.js2
-rw-r--r--build/release.js6
2 files changed, 4 insertions, 4 deletions
diff --git a/Gruntfile.js b/Gruntfile.js
index 4a024a472..0052f1c84 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -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"
}
}
diff --git a/build/release.js b/build/release.js
index d4161cdbc..8561bdf3a 100644
--- a/build/release.js
+++ b/build/release.js
@@ -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 );