bump-size-limit
/bump-size-limit
Podnosi limity rozmiaru w .size-limit.js, gdy kontrola size-limit w CI kończy się niepowodzeniem, przy błędach rozmiaru paczki i aktualizacji progów.
- Autor
- getsentry ↗
- Repozytorium
- sentry-javascript ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 25.10.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 1
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 25.10.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
Co robi i kiedy
Podnosi limity rozmiaru w .size-limit.js, gdy kontrola size-limit w CI kończy się niepowodzeniem, przy błędach rozmiaru paczki i aktualizacji progów.
Wyzwalacze z opisu
Oryginalny opis (EN)
Bump size limits in .size-limit.js when the size-limit CI check is failing. Use when the user mentions size limit failures, bundle size checks failing, CI size check errors, or needs to update size-limit thresholds. Also use when the user says "bumpSizeLimit", "fix size limit", "size check failing", or "update bundle size limits".
Jak działa
- Workflow
Podgląd SKILL.md
--- name: bump-size-limit description: Bump size limits in .size-limit.js when the size-limit CI check is failing. Use when the user mentions size limit failures, bundle size checks failing, CI size check errors, or needs to update size-limit thresholds. Also use when the user says "bumpSizeLimit", "fix size limit", "size check failing", or "update bundle size limits". --- # Bump Size Limit When the size-limit GitHub Action fails, it means one or more bundle scenarios exceed their configured byte thresholds in `.size-limit.js`. This skill walks through building, measuring, and bumping only the limits that need it. ## Workflow ### Step 1: Build all packages (including CDN bundles) A full build is required because size-limit measures the actual compiled artifacts. ```bash pnpm run build ``` This takes a few minutes. CDN bundles in `packages/browser/build/bundles/` must be up to date — a dev build is not sufficient. ### Step 2: Run the size check in JSON mode ```bash pnpm run test:size-limit ``` The JSON output is an array of objects. Each object has: - `name` — the scenario label - `passed` — whether it's within the limit - `size` — actual size in bytes - `sizeLimit` — configured limit in bytes ### Step 3: Identify failed scenarios Filter for entries where `"passed": false`. These are the only ones that need bumping. ### Step 4: Calculate new limits For each failed scenario, round the actual size **up to the next full KB** (1 KB = 1000 bytes in this context, matching how size-limit interprets the limits in `.size-limit.js`). **Example:** If actual size is `129,127` bytes, the new limit is `130 KB` (i.e. 130,000 bytes). The heuristic is intentionally conservative — it gives just enough headroom without inflating limits unnecessarily. ### Step 5: Update `.size-limit.js` Open `.size-limit.js` at the repository root and update the `limit` field for each failed scenario. Limits are strings like `'130 KB'`. Only change limits for scenarios that actually failed. Do not touch passing scenarios. ### Step 6: Verify the fix Re-run size-limit to confirm everything passes: ```bash pnpm run test:size-limit ``` If any scenario still fails (e.g., due to rounding edge cases), bump that specific limit by another 1 KB and re-run.
Wersje
W bazie nie ma innych skilli o nazwie bump-size-limit.
Migawka bazy z 13.11.2026 · wersja paczki 6f7283d40b48 (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 0 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 96php-upload-size-limits
Naprawia odrzucanie przesyłanych plików przez PHP, gdy są większe niż deklarowany limit. - 100bundle-size-analyzer
Analizuje rozmiar paczki (bundle) w projekcie frontendowym i pomaga znaleźć elementy, które ją powiększają. - 100gh-oss-go-bump
Podnosi wersję Go w wielu repozytoriach open source jednocześnie, na przykład przy aktualizacji do najnowszego Go lub poprawkach bezpieczeństwa. - 100binary-size-analysis
Analizuje zmiany rozmiaru binarki biblioteki hermesvm w zakresie commitów i mierzy, jak poszczególne commity wpływają na regresję rozmiaru. - 100prism-audit
Audytuje frontend pod kątem rozmiaru bundla, zależności, dostępności, wydajności i jakości komponentów, przy przeglądzie frontendu lub kontroli wydajności i dostępności. - 84wasm-constraints
Opisuje ograniczenia buildu WASM dla crate xberg-wasm: cechy dla wasm32, API synchroniczne, limit rozmiaru HTML i build zoptymalizowany.