Skip to content

Commit

Permalink
fix(ci): reduce diff size
Browse files Browse the repository at this point in the history
  • Loading branch information
prymitive committed Jun 17, 2020
1 parent 6a7cc1c commit 1500705
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/cra-bundle-stats-diff.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ def normalizePath(path):
def mergeFiles(allFiles):
files = {}
for path, meta in allFiles.items():
p = normalizePath(path)
np = normalizePath(path)
p = os.path.dirname(np) or np
if p not in files:
files[p] = 0
files[p] += meta['size']
Expand Down

0 comments on commit 1500705

Please sign in to comment.