andresz1 / size-limit-action

Compare the real cost to run your JS app or lib to keep good performance in every pull request

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Should % changed be compared against base instead of current?

billyvg opened this issue · comments

https://github.com/andresz1/size-limit-action/blob/master/src/SizeLimit.ts#L48

Wouldn't this make more sense to compare against base instead of current?

    const value = ((current - base) / base) * 100;

If base is 100, and current is 200, then base increased by 100%.

Yes! I think that you are right @billyvg thank you so much!