aboutsummaryrefslogtreecommitdiffstats
path: root/build
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:48:40 -0400
commitd53ddc90c1f119fb9148a553443ef3fbc3f3cc99 (patch)
tree89ce51413268b60a22112798a5ee9410bf4720b5 /build
parent5f1aa2354aeffa787e40d44224a1b583b7c89666 (diff)
downloadjquery-d53ddc90c1f119fb9148a553443ef3fbc3f3cc99.tar.gz
jquery-d53ddc90c1f119fb9148a553443ef3fbc3f3cc99.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.
Diffstat (limited to 'build')
-rw-r--r--build/release.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/build/release.js b/build/release.js
index 886387995..6ec38777b 100644
--- a/build/release.js
+++ b/build/release.js
@@ -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 );