Skip to content

Commit 2070709

Browse files
committed
Fix bundle size report
1 parent 2b46b7a commit 2070709

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

script/bundle-size-report.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { join } from 'path'
33
import { table } from 'table'
44
import { dirname } from 'path'
55
import { fileURLToPath } from 'url'
6-
import filesize from 'filesize'
6+
import {filesize} from 'filesize'
77
import fs from 'fs'
88

99
const __dirname = dirname(fileURLToPath(import.meta.url))
@@ -113,6 +113,7 @@ const posNeg = v => (v > 0 ? '+ ' : v < 0 ? '- ' : '')
113113

114114
// Beautify the data
115115
data = data.map(row => {
116+
console.log(row)
116117
row[2] = posNeg(row[2]) + `${row[2]}`.replace('-', '')
117118
row[3] = prettySize(row[3])
118119
row[4] = posNeg(row[4]) + `${prettySize(row[4])}`.replace('-', '')

0 commit comments

Comments
 (0)