From dc4d4863a23f58a16b01bcd3970a5ed6470c9856 Mon Sep 17 00:00:00 2001 From: David Aurelio Date: Tue, 8 Mar 2016 12:21:25 -0800 Subject: [PATCH] Make uglify not append //# sourceMappingURL= Summary: We also need a more recent version of uglify that supports this Reviewed By: martinbigio Differential Revision: D3024959 fb-gh-sync-id: f9efdddceda4f726567c39884c844a8e74e6e09d shipit-source-id: f9efdddceda4f726567c39884c844a8e74e6e09d --- .../src/JSTransformer/worker/__tests__/minify-test.js | 2 +- packager/react-packager/src/JSTransformer/worker/minify.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packager/react-packager/src/JSTransformer/worker/__tests__/minify-test.js b/packager/react-packager/src/JSTransformer/worker/__tests__/minify-test.js index 78450879e..184a4aef5 100644 --- a/packager/react-packager/src/JSTransformer/worker/__tests__/minify-test.js +++ b/packager/react-packager/src/JSTransformer/worker/__tests__/minify-test.js @@ -39,7 +39,7 @@ describe('Minification:', () => { expect(uglify.minify).toBeCalledWith(code, objectContaining({ fromString: true, inSourceMap: map, - outSourceMap: filename, + outSourceMap: true, })); }); diff --git a/packager/react-packager/src/JSTransformer/worker/minify.js b/packager/react-packager/src/JSTransformer/worker/minify.js index 089cfc787..680cb8859 100644 --- a/packager/react-packager/src/JSTransformer/worker/minify.js +++ b/packager/react-packager/src/JSTransformer/worker/minify.js @@ -14,7 +14,7 @@ function minify(filename, code, sourceMap) { const minifyResult = uglify.minify(code, { fromString: true, inSourceMap: sourceMap, - outSourceMap: filename, + outSourceMap: true, output: { ascii_only: true, screw_ie8: true,