Skip to content

Commit

Permalink
bugfix: use zero so total size is valid
Browse files Browse the repository at this point in the history
  • Loading branch information
exoego committed Sep 8, 2024
1 parent e714bb7 commit 76e83f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/compare.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ This analysis was generated by [esbuild-bundle-analyzer](https://github.com/exoe
hasAnyChange = true;
return {
...baseStats,
baseBytes: -1,
baseBytes: 0,
remark: "deleted",
tree: undefined,
};
Expand All @@ -55,7 +55,7 @@ This analysis was generated by [esbuild-bundle-analyzer](https://github.com/exoe
if (!baseStats) {
console.log("New file", outfile);
hasAnyChange = true;
return { ...currentStats, baseBytes: -1, remark: "added", tree };
return { ...currentStats, baseBytes: 0, remark: "added", tree };
}

const diff = currentStats.bytes - baseStats.bytes;
Expand Down

0 comments on commit 76e83f6

Please sign in to comment.