Last measured: 2026-06-23 Bundler: tsup (esbuild) via
size-limit
| Format | Size (gzip) | Budget |
|---|---|---|
ESM (import *) |
TBD | 20 KB |
CJS (require) |
TBD | 20 KB |
TBD — run
pnpm build && pnpm sizeafter installation to populate actual measurements, then update this table.
Generate a visual treemap of the Stellar entry's dependency graph:
ANALYZE=true pnpm build
# produces stats/ folder with metafile data
npx esbuild-visualizer --metadata stats/metafile-stellar.json --open
esbuild-visualizeris an optional dev tool — install it globally or vianpxwhen you need to inspect the graph.
pnpm build
pnpm sizepnpm measure:viteOutput written to stats/vite-measurement.json.
The Stellar entry budget is 20 KB gzipped for each format (ESM, CJS).
- If a PR increases the Stellar bundle beyond the budget, CI will fail.
- Reviewers should verify no non-Stellar code was introduced into
src/chains/stellar/by checking imports. - To adjust the budget, update the
size-limitarray inpackage.json.
-
Lazy
@stellar/stellar-sdkimport —pubKeyToStellarAddress()uses a dynamicimport()instead of a top-level static import, ensuring the optional peer dependency is never loaded until the function is actually called. Seesrc/chains/stellar/scalar.ts. -
No cross-chain leaks —
src/chains/stellar/imports zero code fromevm/,solana/,ckb/, oragent/directories. All imports are local (./) or external npm packages (@noble/curves,@noble/hashes).