Skip to content

Commit

Permalink
Fix the sourceMap url on minified bundles
Browse files Browse the repository at this point in the history
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
  • Loading branch information
tadeuzagallo authored and facebook-github-bot-0 committed Dec 18, 2015
1 parent 4769bdc commit 57a76c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packager/react-packager/src/Bundler/Bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -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},
});
Expand Down

0 comments on commit 57a76c0

Please sign in to comment.