Skip to content

Commit

Permalink
fix: 🐛 HMR works only for memory mode
Browse files Browse the repository at this point in the history
  • Loading branch information
mjancarik committed Aug 26, 2024
1 parent 6aabcf8 commit d8baf8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cli/src/plugins/devPlugin.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export function devPlugin({ definition, merkurConfig, cliConfig }) {
});

client.on('open', function open() {
if (merkurConfig.HMR) {
if (merkurConfig.HMR && !(cliConfig.writeToDisk && changed.length === 0 && errors.length === 0)) {
client.send(
JSON.stringify({
to: 'browser',
Expand Down

0 comments on commit d8baf8e

Please sign in to comment.