From 57a76c0c014eacb9c138ab8faf9aaabd964e416d Mon Sep 17 00:00:00 2001 From: Tadeu Zagallo Date: Fri, 18 Dec 2015 11:00:25 -0800 Subject: [PATCH] Fix the sourceMap url on minified bundles Summary: public The minified bundle was always being generated with the `bundle.js` as the source map url. Reviewed By: martinbigio Differential Revision: D2773725 fb-gh-sync-id: 02cda95eb172fc373ce4e605418cbfcec22f433d --- packager/react-packager/src/Bundler/Bundle.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packager/react-packager/src/Bundler/Bundle.js b/packager/react-packager/src/Bundler/Bundle.js index f94c8ff58..b945dd428 100644 --- a/packager/react-packager/src/Bundler/Bundle.js +++ b/packager/react-packager/src/Bundler/Bundle.js @@ -188,7 +188,7 @@ class Bundle { const minifyActivity = Activity.startEvent('minify'); this._minifiedSourceAndMap = UglifyJS.minify(source, { fromString: true, - outSourceMap: 'bundle.js', + outSourceMap: this._sourceMapUrl, inSourceMap: this.getSourceMap(), output: {ascii_only: true}, });