packager: TerminalReporter: remove underline/emoji
Reviewed By: cpojer Differential Revision: D4357225 fbshipit-source-id: 05d6b4fd9b79616a68e5fa3c4700aeac2f3552a9
This commit is contained in:
parent
efc12cd5bf
commit
04fdf40c61
|
@ -11,7 +11,6 @@
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
const chalk = require('chalk');
|
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
const reporting = require('./reporting');
|
const reporting = require('./reporting');
|
||||||
const terminal = require('./terminal');
|
const terminal = require('./terminal');
|
||||||
|
@ -32,7 +31,6 @@ type BundleProgress = {
|
||||||
|
|
||||||
const DARK_BLOCK_CHAR = '\u2593';
|
const DARK_BLOCK_CHAR = '\u2593';
|
||||||
const LIGHT_BLOCK_CHAR = '\u2591';
|
const LIGHT_BLOCK_CHAR = '\u2591';
|
||||||
const PACKAGE_EMOJI = '\uD83D\uDCE6';
|
|
||||||
|
|
||||||
function getProgressBar(ratio: number, length: number) {
|
function getProgressBar(ratio: number, length: number) {
|
||||||
const blockCount = Math.floor(ratio * length);
|
const blockCount = Math.floor(ratio * length);
|
||||||
|
@ -110,8 +108,8 @@ class TerminalReporter {
|
||||||
): string {
|
): string {
|
||||||
const localPath = path.relative('.', entryFilePath);
|
const localPath = path.relative('.', entryFilePath);
|
||||||
return [
|
return [
|
||||||
chalk.underline(`Bundling ${PACKAGE_EMOJI} \`${localPath}\``),
|
`Bundling \`${localPath}\``,
|
||||||
this._getFileTransformMessage(progress, build),
|
' ' + this._getFileTransformMessage(progress, build),
|
||||||
].join('\n');
|
].join('\n');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue