Skip to content

Add a size checker #1071

@franky47

Description

@franky47

The build process for the nuqs package generates a size.json file (from size-limit).

On Pull Requests, we could:

  1. Checkout + setup + install deps + build on the target branch (should be next but could be otherwise), then save that packages/nuqs/size.json as a baseline
  2. Checkout + setup + install deps + build on the PR HEAD
  3. Do a size comparison on the changes
  4. If any, write a comment on the PR indicating the size changes (up or down, in bytes and %).
  5. When more commits are pushed, run the size comparison again.

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueGood for newcomershelp wantedExtra attention is neededinternalInternal issues & discussions

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions