bump-size-limit

द्वारा sentry

जब size-limit CI जांच विफल हो रही हो तब .size-limit.js में आकार सीमाएँ बढ़ाएँ। उपयोग तब करें जब उपयोगकर्ता आकार सीमा विफलताओं, बंडल आकार जांच विफल होने, 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.

yarn 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

yarn 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:

yarn 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 की और Skills

generate-frontend-forms
sentry
Sentry के नए फॉर्म सिस्टम का उपयोग करके फॉर्म बनाने के लिए मार्गदर्शिका। फॉर्म, फॉर्म फ़ील्ड, सत्यापन या ऑटो-सेव कार्यक्षमता लागू करते समय उपयोग करें।
official
sentry-snapshots-cocoa
sentry
Apple/Cocoa प्रोजेक्ट्स के लिए पूर्ण Sentry Snapshots सेटअप। जब "setup SnapshotPreviews", "setup Apple snapshot testing", "upload Apple snapshots to…" के लिए कहा जाए तो उपयोग करें।
official
architecture-review
sentry
स्टाफ-स्तरीय कोडबेस स्वास्थ्य समीक्षा। मोनोलिथिक मॉड्यूल, मूक विफलताएं, प्रकार सुरक्षा अंतराल, परीक्षण कवरेज छिद्र और एलएलएम-मित्रता मुद्दों का पता लगाता है।
official
linear-type-labeler
sentry
लीनियर इश्यूज को वर्गीकृत करता है और प्रत्येक इश्यू के शीर्षक और विवरण की सामग्री के आधार पर सेंट्री वर्कस्पेस की लेबल वर्गीकरण से एक टाइप लेबल लागू करता है।
official
sentry-flutter-sdk
sentry
Flutter और Dart के लिए पूर्ण Sentry SDK सेटअप। जब "Flutter में Sentry जोड़ें", "sentry_flutter इंस्टॉल करें", "Dart में Sentry सेटअप करें" या त्रुटि कॉन्फ़िगर करने के लिए कहा जाए तो इसका उपयोग करें…
official
sentry-svelte-sdk
sentry
Svelte और SvelteKit के लिए पूर्ण Sentry SDK सेटअप। जब "Svelte में Sentry जोड़ें", "SvelteKit में Sentry जोड़ें", "@sentry/sveltekit इंस्टॉल करें" या कॉन्फ़िगर करने के लिए कहा जाए तो उपयोग करें…
official
vercel-react-best-practices
sentry
React और Next.js प्रदर्शन अनुकूलन दिशानिर्देश Vercel Engineering से। इस कौशल का उपयोग React/Next.js को लिखने, समीक्षा करने या रीफैक्टर करते समय किया जाना चाहिए…
official
sentry-tanstack-start-sdk
sentry
TanStack Start React के लिए पूर्ण Sentry SDK सेटअप। जब "TanStack Start में Sentry जोड़ें", "@sentry/tanstackstart-react इंस्टॉल करें", या त्रुटि कॉन्फ़िगर करने के लिए कहा जाए तो उपयोग करें…
official