From 0dc062f77e36a19297dac542be33cded04580e89 Mon Sep 17 00:00:00 2001 From: Jonathan Rehm Date: Thu, 8 Mar 2018 22:40:33 -0700 Subject: [PATCH] Fix HMR hostname in browser (#965) Fixes regression introduced in #921 --- src/Bundler.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Bundler.js b/src/Bundler.js index fa9490709f9..c70f1d0427b 100644 --- a/src/Bundler.js +++ b/src/Bundler.js @@ -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 }; }