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

Commit f6f4e05

Browse files
Alexander Vakrilovsis0k0
Alexander Vakrilov
authored andcommitted
fix(hmr): HMR log is sometimes trimmed (#657)
1 parent 3698cb7 commit f6f4e05

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

hot.js

+4-7
Original file line numberDiff line numberDiff line change
@@ -37,25 +37,22 @@ function result(modules, appliedModules) {
3737
);
3838

3939
if (unaccepted.length > 0) {
40-
let message = 'The following modules could not be updated:';
40+
log.warn('The following modules could not be updated:');
4141

4242
for (const moduleId of unaccepted) {
43-
message += `\n${moduleId}`;
43+
log.warn(`${moduleId}`);
4444
}
45-
log.warn(message);
4645
}
4746

4847
if (!(appliedModules || []).length) {
4948
console.info('No Modules Updated.');
5049
} else {
51-
const message = ['The following modules were updated:'];
50+
console.info('The following modules were updated:');
5251

5352
for (const moduleId of appliedModules) {
54-
message.push(` ↻ ${moduleId}`);
53+
console.info(` ↻ ${moduleId}`);
5554
}
5655

57-
console.info(message.join('\n'));
58-
5956
const numberIds = appliedModules.every(
6057
(moduleId) => typeof moduleId === 'number'
6158
);

0 commit comments

Comments
 (0)