Blenra LogoBlenra
Optimized for: Gemini / ChatGPT / Claude
#React

Advanced AI Prompt for Manual Chunking Strategy in Vite

Customize the variables below to instantly engineer your prompt.

Required Variables

advanced-ai-prompt-vite-manual-chunking.txt
Act as a Senior Build Performance Engineer. Design a sophisticated Vite manual chunking strategy for a massive React application utilizing the `build.rollupOptions.output.manualChunks` configuration. The primary objective is to aggressively isolate heavy, rarely-changing vendor libraries like [VENDOR_LIBS] into dedicated, long-term cacheable bundles, while strictly ensuring no single JavaScript chunk exceeds a [MAX_CHUNK_SIZE] threshold (e.g., 500kb). Provide the exact `vite.config.ts` TypeScript code snippet utilizing a functional chunking approach. Include a highly technical explanation detailing how this specific module-splitting strategy prevents the catastrophic, unnecessary cache invalidation of stable vendor code whenever internal application business logic is updated, thereby drastically improving subsequent page load times and Core Web Vitals.

Example Text Output

"The AI will generate a sophisticated Rollup output configuration using a functional approach to manualChunks, effectively splitting specified libraries into persistent cacheable files."

More Web Components Prompts

View all →

Frequently Asked Questions

What is the "Advanced AI Prompt for Manual Chunking Strategy in Vite" prompt used for?

The AI will generate a sophisticated Rollup output configuration using a functional approach to manualChunks, effectively splitting specified libraries into persistent cacheable files.

Which AI tools work with this prompt?

This prompt is optimized for Gemini / ChatGPT / Claude, but works great with ChatGPT, Claude, Gemini, and other large language models. Simply copy it and paste it into your preferred AI tool.

How do I customize this prompt?

Use the variable fields above to fill in your specific details. The prompt will auto-update as you type, ready to copy instantly.

Is this prompt free?

Yes! All prompts on Blenra are free to copy and use immediately. No account required.