From 207070961eff673ed83c055af6ec8d28f7002b1a Mon Sep 17 00:00:00 2001 From: Jon Rohan Date: Tue, 2 Jan 2024 18:51:10 +0000 Subject: [PATCH] Fix bundle size report --- script/bundle-size-report.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/script/bundle-size-report.js b/script/bundle-size-report.js index 66429e1fe5..1ba844c69f 100755 --- a/script/bundle-size-report.js +++ b/script/bundle-size-report.js @@ -3,7 +3,7 @@ import { join } from 'path' import { table } from 'table' import { dirname } from 'path' import { fileURLToPath } from 'url' -import filesize from 'filesize' +import {filesize} from 'filesize' import fs from 'fs' const __dirname = dirname(fileURLToPath(import.meta.url)) @@ -113,6 +113,7 @@ const posNeg = v => (v > 0 ? '+ ' : v < 0 ? '- ' : '') // Beautify the data data = data.map(row => { + console.log(row) row[2] = posNeg(row[2]) + `${row[2]}`.replace('-', '') row[3] = prettySize(row[3]) row[4] = posNeg(row[4]) + `${prettySize(row[4])}`.replace('-', '')