mirror of
https://github.com/developit/microbundle.git
synced 2026-01-18 13:56:35 +00:00
Update index.js
This commit is contained in:
parent
6f16a0d5d2
commit
1920e2d9bc
@ -135,7 +135,7 @@ export default async function microbundle(options) {
|
||||
}
|
||||
|
||||
function formatSize(size, filename, type) {
|
||||
const pretty = size < 5000 ? `${size} B` : prettyBytes(size);
|
||||
const pretty = options.raw ? `${size} B` : prettyBytes(size);
|
||||
const color = size < 5000 ? 'green' : size > 40000 ? 'red' : 'yellow';
|
||||
const MAGIC_INDENTATION = type === 'br' ? 13 : 10;
|
||||
return `${' '.repeat(MAGIC_INDENTATION - pretty.length)}${chalk[color](
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user