diff --git a/scripts/build.mjs b/scripts/build.mjs index a41550a90b5..77e50fb2f6b 100644 --- a/scripts/build.mjs +++ b/scripts/build.mjs @@ -193,7 +193,7 @@ function checkFileSize(filePath) { const gzipped = gzipSync(file) const gzippedSize = (gzipped.length / 1024).toFixed(2) + 'kb' const compressed = compress(file) - const compressedSize = (compressed?.length || 0 / 1024).toFixed(2) + 'kb' + const compressedSize = (compressed?.length / 1024).toFixed(2) + 'kb' console.log( `${chalk.gray( chalk.bold(path.basename(filePath))