diff options
author | Timmy Willison <timmywillisn@gmail.com> | 2015-01-30 12:22:25 -0800 |
---|---|---|
committer | Timmy Willison <timmywillisn@gmail.com> | 2015-01-30 12:22:31 -0800 |
commit | a76c7812366e7e45ea29969db72d90261ef87af5 (patch) | |
tree | 3ba35392b461fd36b4ee465e9b7f5a7ca84b7a6c /build/release | |
parent | e0673dfedb9ad07d8e68f28a54453b975c412c33 (diff) | |
download | jquery-a76c7812366e7e45ea29969db72d90261ef87af5.tar.gz jquery-a76c7812366e7e45ea29969db72d90261ef87af5.zip |
Release: remove sourcemap comment from all copies of minified file
Fixes gh-1707
Diffstat (limited to 'build/release')
-rw-r--r-- | build/release/cdn.js | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/build/release/cdn.js b/build/release/cdn.js index 8b0658812..6c497ee0b 100644 --- a/build/release/cdn.js +++ b/build/release/cdn.js @@ -44,12 +44,6 @@ function makeReleaseCopies( Release ) { "\"file\":\"" + unpathedFile.replace( /\.min\.map/, ".min.js" ) + "\",\"sources\":[\"" + unpathedFile.replace( /\.min\.map/, ".js" ) + "\"]" ); fs.writeFileSync( releaseFile, text ); - } else if ( /\.min\.js$/.test( releaseFile ) ) { - // 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+/, "" ); - fs.writeFileSync( releaseFile, text ); } else if ( builtFile !== releaseFile ) { shell.cp( "-f", builtFile, releaseFile ); } |