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

Advanced AI Prompt for Improving Vite HMR Speed in Large Projects

Customize the variables below to instantly engineer your prompt.

Required Variables

advanced-ai-prompt-vite-hmr-speed-tuning.txt
Act as a Developer Experience (DX) Engineer. A massive enterprise React project containing over [COMPONENT_COUNT] components is currently suffering from severely degraded Vite Hot Module Replacement (HMR) latency. Rewrite the `server.watch` and `server.hmr` configuration objects in `vite.config.ts` to highly optimize Chokidar's file-watching constraints, specifically addressing OS-level [FILE_WATCH_LIMIT] (e.g., `ENOSPC` errors on Linux). Deliver a technical architectural briefing advising the engineering team on how to physically restructure their React component exports and index files (barrel files) to drastically minimize the HMR propagation tree, along with the code to explicitly exclude `ignored` massive non-essential directories from the watcher to slash CPU overhead.

Example Text Output

"The AI will produce a server configuration that optimizes the file-watching mechanism for massive codebases."

More Web Components Prompts

View all →

Frequently Asked Questions

What is the "Advanced AI Prompt for Improving Vite HMR Speed in Large Projects" prompt used for?

The AI will produce a server configuration that optimizes the file-watching mechanism for massive codebases.

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.