Bundle Size Reducer
Iteratively reduces JavaScript bundle size by analyzing dependencies, identifying large modules, and applying targeted optimizations until a specified size t…
This loop is republished with attribution. Full credit and the original content belong to the source linked above.
AI Skill Market Insights
Real data. Real impact.
Emerging
Developers
Kickoff Prompt
Copy this prompt and run it with your agent to start the loop.
Start the "Bundle Size Reducer" loop.
Goal: Reduce bundle size to target threshold
Max iterations: 10
Between iterations run: bundle analyzer
Exit when: Size target achieved
Please analyze the current JavaScript bundle size using your preferred analyzer tool (e.g., 'npx webpack-bundle-analyzer dist/static/js/*.js'). Report the total bundle size in KB/MB, identify the top 5 largest modules, and indicate whether the current size exceeds our target of [TARGET_SIZE]KB. Include the full analysis output in your response.
Self-pace this loop. After each iteration, run `bundle analyzer` and evaluate the output, and only continue if the exit condition is not met (Size target achieved). Stop when the exit condition passes or 10 iterations are reached. Give a short status update each pass.