mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Revert "Fix #13983. Switch to //# for sourcemaps."
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 commitd53ddc90c1
. (cherry picked from commit6e630fbbb1
)
This commit is contained in:
parent
cfa00353e6
commit
5f2b5861b0
@ -115,7 +115,7 @@ module.exports = function( grunt ) {
|
|||||||
"/*! jQuery v<%= pkg.version %> | " +
|
"/*! jQuery v<%= pkg.version %> | " +
|
||||||
"(c) 2005, 2013 jQuery Foundation, Inc. | " +
|
"(c) 2005, 2013 jQuery Foundation, Inc. | " +
|
||||||
"jquery.org/license\n" +
|
"jquery.org/license\n" +
|
||||||
"//# sourceMappingURL=jquery.min.map\n" +
|
"//@ sourceMappingURL=jquery.min.map\n" +
|
||||||
"*/\n"
|
"*/\n"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -166,10 +166,10 @@ function makeReleaseCopies( next ) {
|
|||||||
} else if ( /\.min\.js$/.test( releaseFile ) ) {
|
} else if ( /\.min\.js$/.test( releaseFile ) ) {
|
||||||
// Minified files point back to the corresponding map;
|
// Minified files point back to the corresponding map;
|
||||||
// again assume one big happy directory.
|
// again assume one big happy directory.
|
||||||
// "//# sourceMappingURL=jquery.min.map"
|
// "//@ sourceMappingURL=jquery.min.map"
|
||||||
text = fs.readFileSync( builtFile, "utf8" )
|
text = fs.readFileSync( builtFile, "utf8" )
|
||||||
.replace( /\/\/# sourceMappingURL=\S+/,
|
.replace( /\/\/@ sourceMappingURL=\S+/,
|
||||||
"//# sourceMappingURL=" + unpathedFile.replace( /\.js$/, ".map" ) );
|
"//@ sourceMappingURL=" + unpathedFile.replace( /\.js$/, ".map" ) );
|
||||||
fs.writeFileSync( releaseFile, text );
|
fs.writeFileSync( releaseFile, text );
|
||||||
} else if ( builtFile !== releaseFile ) {
|
} else if ( builtFile !== releaseFile ) {
|
||||||
copy( builtFile, releaseFile );
|
copy( builtFile, releaseFile );
|
||||||
|
Loading…
Reference in New Issue
Block a user