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

Advanced AI Prompt for Optimizing Vite Dependency Pre-bundling

Customize the variables below to instantly engineer your prompt.

Required Variables

advanced-ai-prompt-vite-dependency-prebundling.txt
Act as a Build Performance Consultant. Execute a surgical optimization of the `optimizeDeps` configuration block within Vite to aggressively remediate agonizingly slow cold-start dev server times caused by [HEAVY_DEPS] (e.g., massive component libraries like MUI or Three.js). Identify and explicitly configure the [EXCLUDED_DEPS] array for specific packages that must absolutely remain as native ESM to prevent build failure. Provide code demonstrating how to utilize the `optimizeDeps.include` array to forcefully instruct Esbuild to pre-bundle deeply nested imports, completely eliminating Vite's notorious cascading 'dependency discovery' page reloads during the initial browser mount, achieving sub-second boot times.

Example Text Output

"The AI will generate a tailored optimizeDeps block that significantly reduces Vite's initial dependency discovery phase."

More Web Components Prompts

View all →

Frequently Asked Questions

What is the "Advanced AI Prompt for Optimizing Vite Dependency Pre-bundling" prompt used for?

The AI will generate a tailored optimizeDeps block that significantly reduces Vite's initial dependency discovery phase.

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.