Skip to content
Permalink
Browse files

Fix #14415. Remove the source map comment in the release script. Close

  • Loading branch information...
mgol committed Nov 9, 2013
1 parent 650f325 commit 562145e887cc42ce8c9c9cd2c6e946ff01e6731d
Showing with 3 additions and 5 deletions.
  1. +3 −5 build/release.js
@@ -165,12 +165,10 @@ function makeReleaseCopies( next ) {
"\",\"sources\":[\"" + unpathedFile.replace( /\.min\.map/, ".js" ) + "\"]" );
fs.writeFileSync( releaseFile, text );
} else if ( /\.min\.js$/.test( releaseFile ) ) {
// Minified files point back to the corresponding map;
// again assume one big happy directory.
// "//# sourceMappingURL=jquery.min.map"
// Remove the source map comment; it causes way too many problems.
// Keep the map file in case DevTools allow manual association.
text = fs.readFileSync( builtFile, "utf8" )
.replace( /\/\/# sourceMappingURL=\S+/,
"//# sourceMappingURL=" + unpathedFile.replace( /\.js$/, ".map" ) );
.replace( /\/\/# sourceMappingURL=\S+/, "" );
fs.writeFileSync( releaseFile, text );
} else if ( builtFile !== releaseFile ) {
copy( builtFile, releaseFile );

0 comments on commit 562145e

Please sign in to comment.
You can’t perform that action at this time.