Skip to content

Commit

Permalink
Fix HMR hostname in browser (#965)
Browse files Browse the repository at this point in the history
Fixes regression introduced in #921
  • Loading branch information
jkrehm authored and devongovett committed Mar 9, 2018
1 parent 1ceb7aa commit 0dc062f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Bundler.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@ class Bundler extends EventEmitter {
sourceMaps:
typeof options.sourceMaps === 'boolean' ? options.sourceMaps : true,
hmrHostname:
options.hmrHostname || options.target === 'electron' ? 'localhost' : '',
options.hmrHostname ||
(options.target === 'electron' ? 'localhost' : ''),
detailedReport: options.detailedReport || false
};
}
Expand Down

0 comments on commit 0dc062f

Please sign in to comment.