check_bundle
Analyze a React/Next.js file's impact on bundle size by checking heavy imports, barrel exports, unnecessary 'use client', dynamic imports, and third-party scripts.
Instructions
React/Next.js dosyasının JavaScript bundle boyutuna etkisini analiz eder. Ağır kütüphane import'ları, barrel export anti-pattern, gereksiz 'use client', dynamic import fırsatları ve third-party script stratejilerini kontrol eder.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"code": "<code>"
},
"name": "check_bundle"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Analiz edilecek dosyanın kodu | |
| filename | No | Dosya adı | |
| packageJsonContent | No | package.json dosyasının içeriği (opsiyonel). Verilirse bağımlılık bazlı analiz de yapılır. |