From 1920e2d9bcb4f56aaa978557a481aceacd82c3ba Mon Sep 17 00:00:00 2001 From: Jason Miller Date: Wed, 1 Aug 2018 11:10:45 -0400 Subject: [PATCH] Update index.js --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 09433fd..2b2a475 100644 --- a/src/index.js +++ b/src/index.js @@ -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](