Skip to content

Commit 57a76c0

Browse files
tadeuzagallofacebook-github-bot-0
authored andcommitted
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
1 parent 4769bdc commit 57a76c0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packager/react-packager/src/Bundler/Bundle.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ class Bundle {
188188
const minifyActivity = Activity.startEvent('minify');
189189
this._minifiedSourceAndMap = UglifyJS.minify(source, {
190190
fromString: true,
191-
outSourceMap: 'bundle.js',
191+
outSourceMap: this._sourceMapUrl,
192192
inSourceMap: this.getSourceMap(),
193193
output: {ascii_only: true},
194194
});

0 commit comments

Comments
 (0)