Home

Awesome

Check my bundlephobia

<p align="center"> <img width="400" src="https://carles.dev/statics/images/cmb-logo.svg" /> </p>

Check my bundlephobia is a github action that will check for your code changes on a PR and will left a comment with the different sizes.

How to use it

name: "check my bundlephobia"
on:
  push:
    branches:
      - master
  pull_request:
    branches:
      - master
jobs:
  bundlecheck:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v1
      - uses: carlesnunez/check-my-bundlephobia@v1
        with:
          repo-token: ${{ secrets.GITHUB_TOKEN }}
          strict: true
          threshold: 500
          ignore-dev-dependencies: true

Options

namedescriptionrequiredtypedefault
repo-tokenused by the action in order to perform PR reviewstrue
strictIf true will reject the PR if threshold is excededfalseBooleanfalse
thresholdMax package size in bytesfalseString500
ignore-dev-dependenciesIgnore devDependencies so that to not be checkedfalseBooleanfalse