From 35e90ab166a1ae75448fc23e16272c9961dcaceb Mon Sep 17 00:00:00 2001 From: vakrilov Date: Fri, 14 Sep 2018 10:13:21 +0300 Subject: [PATCH] fix(hmr): HMR log is sometimes trimmed --- hot.js | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/hot.js b/hot.js index 73fa8f2f..f6fcb225 100644 --- a/hot.js +++ b/hot.js @@ -37,25 +37,22 @@ function result(modules, appliedModules) { ); if (unaccepted.length > 0) { - let message = 'The following modules could not be updated:'; + log.warn('The following modules could not be updated:'); for (const moduleId of unaccepted) { - message += `\n ⦻ ${moduleId}`; + log.warn(` ⦻ ${moduleId}`); } - log.warn(message); } if (!(appliedModules || []).length) { console.info('No Modules Updated.'); } else { - const message = ['The following modules were updated:']; + console.info('The following modules were updated:'); for (const moduleId of appliedModules) { - message.push(` ↻ ${moduleId}`); + console.info(` ↻ ${moduleId}`); } - console.info(message.join('\n')); - const numberIds = appliedModules.every( (moduleId) => typeof moduleId === 'number' );