bump-size-limit

작성자: sentry

.size-limit.js 파일에서 크기 제한을 올립니다. size-limit CI 검사가 실패할 때 사용합니다. 사용자가 크기 제한 실패, 번들 크기 검사 실패, CI 크기 문제를 언급할 때 사용하세요.

npx skills add https://github.com/getsentry/sentry-javascript --skill bump-size-limit

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.

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

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:

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.

sentry의 다른 스킬

add-ai-integration
sentry
Sentry JavaScript SDK에 새로운 AI 제공자 통합을 추가합니다. 새로운 AI 계측(OpenAI, Anthropic, Vercel AI, LangChain 등)을 기여할 때 사용하세요.
add-cdn-bundle
sentry
지정된 기능을 사용하여 브라우저 패키지용 새 CDN 번들을 생성합니다.
agent-prompt
sentry
효과적인 에이전트 프롬프트와 스킬 작성을 위한 참고 가이드입니다. 새로운 스킬을 만들거나 프롬프트 품질을 검토하거나 Warden의 프롬프트를 이해할 때 사용하세요.
agents-md
sentry
이 스킬은 사용자가 "AGENTS.md 생성", "AGENTS.md 업데이트", "에이전트 문서 유지", "CLAUDE.md 설정"을 요청하거나 에이전트를 유지해야 할 때 사용해야 합니다.
agents-md
sentry
60줄 미만의 최소화되고 핵심 정보를 담은 에이전트 문서를 생성 및 유지 관리합니다. 연구 기반의 에이전트 문서 모범 사례를 적용하며, 길이가 길어질수록 지침 품질이 저하됩니다. 패키지 관리자, 파일 범위 명령(파일별 테스트/린트/타입체크), 에이전트 ID를 포함한 커밋 속성의 세 가지 핵심 섹션이 필요합니다. 프로젝트 구조(잠금 파일, 린터 설정, CI 명령, 모노레포 표시)를 분석하여 파일에 포함할 내용을 결정합니다. 헤더와 불릿만 사용하며, 참조...
agents-md
sentry
이 스킬은 사용자가 "create AGENTS.md", "update AGENTS.md", "maintain agent docs", "set up CLAUDE.md"를 요청하거나 에이전트 문서를 유지해야 할 때 사용해야 합니다.
ai-sdk
sentry
ai-sdk — AI 에이전트용 설치 가능한 스킬, getsentry/webvitals.com에서 게시함.
analytics
sentry
Sentry의 프론트엔드 UI에서 analytics 이벤트를 계측하고 발견합니다. 버튼, 페이지, 모달 또는 사용자 정의 상호작용에 추적을 추가하거나 새로운 항목을 정의할 때 사용합니다.