Skip to content
This repository was archived by the owner on Aug 7, 2021. It is now read-only.

Commit eb48234

Browse files
Alexander Vakrilovsis0k0
Alexander Vakrilov
authored andcommitted
refactor(hmr): improve hot decline/no-accept message (#745)
A minor improvement over message formatting for unaccepted or declined HMR changes
1 parent 6a9db32 commit eb48234

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

hot.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,12 @@ const hotOptions = {
1717
chain.pop();
1818
}
1919

20-
log.warn(`Ignored an update to unaccepted module ${chain.join(' ➭ ')}`);
20+
log.warn(`Ignored an update to unaccepted module: `);
21+
chain.forEach(mod => log.warn(` ➭ ${mod}`));
2122
},
2223
onDeclined(data) {
23-
log.warn(`Ignored an update to declined module ${data.chain.join(' ➭ ')}`);
24+
log.warn(`Ignored an update to declined module:`);
25+
data.chain.forEach(mod => log.warn(` ➭ ${mod}`));
2426
},
2527
onErrored(data) {
2628
log.warn(

0 commit comments

Comments
 (0)