Open isuvorov opened 2 months ago
Extra blank lines appear when using the --silent option.
--silent
I propose add a check if (isSilentMode) in the appropriate parts of the code to fix this issue.
function createHumanReporter(process, isSilentMode = false) { function print(...lines) { if (!isSilentMode) { process.stdout.write(' ' + lines.join('\n ') + '\n') } }
https://github.com/ai/size-limit/blob/d0d681d7d0c686773650ba1af03d892f0081e761/packages/size-limit/create-reporter.js#L48
Need advice on the correctness of this approach.
I could make PR by myself.
This gap is too БЕСИТ 😬
Yes, let’s remove spaces for silent mode. Create PR.
Extra blank lines appear when using the
--silent
option.I propose add a check if (isSilentMode) in the appropriate parts of the code to fix this issue.
https://github.com/ai/size-limit/blob/d0d681d7d0c686773650ba1af03d892f0081e761/packages/size-limit/create-reporter.js#L48
Need advice on the correctness of this approach.
I could make PR by myself.
This gap is too БЕСИТ 😬