Skip to content

ci(size-limit): add bundle-size check on PR and push (#627) - #692

Open
ZacLou wants to merge 4 commits into
conduit-protocol:mainfrom
ZacLou:ci/bundle-size-limit-627
Open

ci(size-limit): add bundle-size check on PR and push (#627)#692
ZacLou wants to merge 4 commits into
conduit-protocol:mainfrom
ZacLou:ci/bundle-size-limit-627

Conversation

@ZacLou

@ZacLou ZacLou commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

Closes #627.

Summary

Adds an automated bundle-size gate that fails CI when the gzipped distributable exceeds configured limits.

Changes

  • .size-limit.json: 80KB gzip limit for index.js (both ESM/CJS), 30KB for utils.js
  • .github/workflows/size-limit.yml: runs npx size-limit after npm run build on every PR and push to main
  • package.json: adds @size-limit/preset-small-lib devDependency and size-limit npm script

Notes

  • Limits are intentionally generous for the first pass; tighten once baseline is measured in CI
  • The check reuses the existing build job output (no duplicate build step)

ZacLou and others added 4 commits September 6, 2026 03:51
…uit-protocol#606)

- Export resolveFee from src/index.ts so consumers can compute effective fees
- Add fee and feeMultiplier rows to ConduitClient configuration table
- Add Fee Precedence section to README explaining the resolution order:
  explicit fee > feeMultiplier * BASE_FEE > BASE_FEE

Closes conduit-protocol#606
…l#627)

- Add .size-limit.json with 80KB gzip limit for index entry and 30KB for utils
- Add size-limit.yml GitHub Actions workflow (runs after build)
- Add @size-limit/preset-small-lib devDependency and size-limit npm script
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bundle-size CI check (size-limit)

1 participant