diff --git a/packages/metro-bundler/src/lib/TerminalReporter.js b/packages/metro-bundler/src/lib/TerminalReporter.js index 5dae8054..f7a87414 100644 --- a/packages/metro-bundler/src/lib/TerminalReporter.js +++ b/packages/metro-bundler/src/lib/TerminalReporter.js @@ -101,16 +101,16 @@ class TerminalReporter { ): string { const localPath = path.relative('.', bundleOptions.entryFile); return util.format( - 'Bundling `%s` %s%s% (%s/%s)%s %s, %s, %s', + 'Bundling `%s` [%s, %s, %s] %s%s%% (%s/%s)%s', localPath, + bundleOptions.dev ? 'development' : 'production', + bundleOptions.minify ? 'minified' : 'non-minified', + bundleOptions.hot ? 'hmr enabled' : 'hmr disabled', phase === 'in_progress' ? getProgressBar(ratio, 16) + ' ' : '', (100 * ratio).toFixed(1), transformedFileCount, totalFileCount, phase === 'done' ? ', done.' : (phase === 'failed' ? ', failed.' : ''), - bundleOptions.dev ? 'development' : 'production', - bundleOptions.minify ? 'minified' : 'non-minified', - bundleOptions.hot ? 'hmr enabled' : 'hmr disabled', ); }