Skip to content

perf: add stellar bundle size audit with size-limit, CI gate, and laz…#89

Merged
truthixify merged 3 commits into
wraith-protocol:developfrom
Theraxia:perf/stellar-bundle-audit
Jun 29, 2026
Merged

perf: add stellar bundle size audit with size-limit, CI gate, and laz…#89
truthixify merged 3 commits into
wraith-protocol:developfrom
Theraxia:perf/stellar-bundle-audit

Conversation

@Theraxia

@Theraxia Theraxia commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

Closes #57


…y import optimization

  • Add size-limit config with 20 KB budget for Stellar ESM and CJS entries
  • Add rollup-plugin-visualizer integration via ANALYZE env var and metafile
  • Add CI gate step () that fails on budget overage
  • Add BUNDLE_SIZE.md baseline documentation
  • Add Vite-style measurement script for comparison
  • Fix: convert static import to dynamic lazy import in to prevent optional peer dep from being required at module load time
  • Update all callers and tests for async signature change
  • Update pre-commit hook to include size check
  • Confirmed no cross-chain imports exist in src/chains/stellar/Tree-shaking audit + bundle size budget for Stellar entry #57

clintjeff2 and others added 2 commits June 2, 2026 00:20
…raith-protocol#45)

* perf(stellar): prefilter scans with public view tags

* test(stellar): cover legacy view-tag scanner
…y import optimization

- Add size-limit config with 20 KB budget for Stellar ESM and CJS entries
- Add rollup-plugin-visualizer integration via ANALYZE env var and metafile
- Add CI gate step () that fails on budget overage
- Add BUNDLE_SIZE.md baseline documentation
- Add Vite-style measurement script for comparison
- Fix: convert static  import to dynamic lazy import
  in  to prevent optional peer dep from being
  required at module load time
- Update all callers and tests for async signature change
- Update pre-commit hook to include size check
- Confirmed no cross-chain imports exist in src/chains/stellar/
@drips-wave

drips-wave Bot commented Jun 23, 2026

Copy link
Copy Markdown

@Theraxia Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@truthixify truthixify changed the base branch from main to develop June 24, 2026 14:49
@truthixify

Copy link
Copy Markdown
Contributor

Conflicts in 9 files. Same root cause as #88: your branch was opened before view-tag batching landed on develop, so your diff is re-including those changes.

Rebase against develop and scope this PR to just the bundle-size additions:

git fetch origin
git rebase origin/develop
# during rebase, drop changes to src/chains/stellar/scan.ts, stealth.ts, scalar.ts, test/chains/stellar/scan.test.ts, docs/chains/stellar-view-tag-batching.md
# keep BUNDLE_SIZE.md, scripts/measure-vite.mjs, package.json size-limit config, tsup.config.ts changes, CI workflow additions, the small index.ts re-exports if you added any
git push --force-with-lease

Bundle measurement infra is what we want from this PR.

@Theraxia

Copy link
Copy Markdown
Contributor Author

okay i will work on it

@Theraxia

Copy link
Copy Markdown
Contributor Author

i have done it, kindly review

@truthixify

Copy link
Copy Markdown
Contributor

Clean merge. 64-line BUNDLE_SIZE.md + size-limit config + 75-line measure script + bench harness. Long-stuck PR landing cleanly now. Thanks @Theraxia.

@truthixify truthixify merged commit 0c45213 into wraith-protocol:develop Jun 29, 2026
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.

Tree-shaking audit + bundle size budget for Stellar entry

3 participants