diff options
author | Dave Methvin <dave.methvin@gmail.com> | 2013-07-02 16:58:20 -0400 |
---|---|---|
committer | Dave Methvin <dave.methvin@gmail.com> | 2013-07-02 16:58:20 -0400 |
commit | 6e630fbbb19306e1914712502a2b22872e94ddad (patch) | |
tree | b6c655085b3e6a3a3da7df4f06d74657c2c1fb34 /build | |
parent | a44202dc604d14688756ae0cccde0fec53e53dbf (diff) | |
download | jquery-6e630fbbb19306e1914712502a2b22872e94ddad.tar.gz jquery-6e630fbbb19306e1914712502a2b22872e94ddad.zip |
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 commit d53ddc90c1f119fb9148a553443ef3fbc3f3cc99.
Diffstat (limited to 'build')
-rw-r--r-- | build/release.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/build/release.js b/build/release.js index 6ec38777b..886387995 100644 --- a/build/release.js +++ b/build/release.js @@ -167,10 +167,10 @@ function makeReleaseCopies( next ) { } else if ( /\.min\.js$/.test( releaseFile ) ) { // Minified files point back to the corresponding map; // again assume one big happy directory. - // "//# sourceMappingURL=jquery.min.map" + // "//@ sourceMappingURL=jquery.min.map" text = fs.readFileSync( builtFile, "utf8" ) - .replace( /\/\/# sourceMappingURL=\S+/, - "//# sourceMappingURL=" + unpathedFile.replace( /\.js$/, ".map" ) ); + .replace( /\/\/@ sourceMappingURL=\S+/, + "//@ sourceMappingURL=" + unpathedFile.replace( /\.js$/, ".map" ) ); fs.writeFileSync( releaseFile, text ); } else if ( builtFile !== releaseFile ) { copy( builtFile, releaseFile ); |