diff options
author | Michał Gołębiowski <m.goleb@gmail.com> | 2013-11-09 23:55:32 +0100 |
---|---|---|
committer | Michał Gołębiowski <m.goleb@gmail.com> | 2013-11-10 23:24:26 +0100 |
commit | 562145e887cc42ce8c9c9cd2c6e946ff01e6731d (patch) | |
tree | 76bcb8cc213c02654f1ab27bde835d557e7051c5 | |
parent | 650f325d8e5e9092cd8ca7c1a7ab62c4bba582cf (diff) | |
download | jquery-562145e887cc42ce8c9c9cd2c6e946ff01e6731d.tar.gz jquery-562145e887cc42ce8c9c9cd2c6e946ff01e6731d.zip |
Fix #14415. Remove the source map comment in the release script. Close gh-1424.
-rw-r--r-- | build/release.js | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/build/release.js b/build/release.js index 973338a88..2a762cf08 100644 --- a/build/release.js +++ b/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 ); |