Skip to content

Commit d53ddc9

Browse files
committed
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.
1 parent 5f1aa23 commit d53ddc9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Gruntfile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ module.exports = function( grunt ) {
115115
"/*! jQuery v<%= pkg.version %> | " +
116116
"(c) 2005, 2013 jQuery Foundation, Inc. | " +
117117
"jquery.org/license\n" +
118-
"//@ sourceMappingURL=jquery.min.map\n" +
118+
"//# sourceMappingURL=jquery.min.map\n" +
119119
"*/\n"
120120
}
121121
}

build/release.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,10 +167,10 @@ function makeReleaseCopies( next ) {
167167
} else if ( /\.min\.js$/.test( releaseFile ) ) {
168168
// Minified files point back to the corresponding map;
169169
// again assume one big happy directory.
170-
// "//@ sourceMappingURL=jquery.min.map"
170+
// "//# sourceMappingURL=jquery.min.map"
171171
text = fs.readFileSync( builtFile, "utf8" )
172-
.replace( /\/\/@ sourceMappingURL=\S+/,
173-
"//@ sourceMappingURL=" + unpathedFile.replace( /\.js$/, ".map" ) );
172+
.replace( /\/\/# sourceMappingURL=\S+/,
173+
"//# sourceMappingURL=" + unpathedFile.replace( /\.js$/, ".map" ) );
174174
fs.writeFileSync( releaseFile, text );
175175
} else if ( builtFile !== releaseFile ) {
176176
copy( builtFile, releaseFile );

0 commit comments

Comments
 (0)