forked from Stellar-split/split-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsize-limits.config.ts
More file actions
40 lines (33 loc) · 908 Bytes
/
Copy pathsize-limits.config.ts
File metadata and controls
40 lines (33 loc) · 908 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/**
* Bundle size limits configuration for tree-shaking audit.
*
* Each entry defines the maximum allowed gzipped size in bytes for a named export.
* Budgets are derived from current baseline measurements.
*/
export const sizeLimits = {
/** Main client class - core SDK functionality */
StellarSplitClient: {
maxBytes: 50000, // 50KB gzipped
},
/** Utility function for formatting amounts */
formatAmount: {
maxBytes: 1000, // 1KB gzipped
},
/** Utility function for parsing amounts */
parseAmount: {
maxBytes: 1000, // 1KB gzipped
},
/** Telemetry collection utilities */
TelemetryCollector: {
maxBytes: 5000, // 5KB gzipped
},
/** Retry policy implementation */
RetryPolicy: {
maxBytes: 3000, // 3KB gzipped
},
/** Health check utilities */
checkRPCHealth: {
maxBytes: 2000, // 2KB gzipped
},
};
export default sizeLimits;