Skip to content

Commit

Permalink
fix hmr bug (#921)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jasper De Moor authored and devongovett committed Mar 2, 2018
1 parent e7ea515 commit 88630f2
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 @@ -93,7 +93,8 @@ class Bundler extends EventEmitter {
rootDir: Path.dirname(this.mainFile),
sourceMaps:
typeof options.sourceMaps === 'boolean' ? options.sourceMaps : true,
hmrHostname: options.hmrHostname || '',
hmrHostname:
options.hmrHostname || options.target === 'electron' ? 'localhost' : '',
detailedReport: options.detailedReport || false
};
}
Expand Down

0 comments on commit 88630f2

Please sign in to comment.