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 }; }