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

Advanced AI Prompt for Vite Dynamic Import and Code Splitting Orchestration

Customize the variables below to instantly engineer your prompt.

Required Variables

advanced-ai-prompt-vite-dynamic-import-strategy.txt
Act as a Frontend Performance Specialist. Design a highly aggressive dynamic import and code-splitting strategy for the massive [DYNAMIC_ROUTES] defined within a Vite/React application. Force Vite's `build.rollupOptions` to manually chunk routes while optimizing the generation of async preload tags based on a strict [PRELOAD_THRESHOLD] (e.g., only preloading chunks smaller than 50kb). Provide highly technical instructions on utilizing `vite-plugin-inspect` to debug the Rollup AST and identify exactly why certain shared modules are failing to split correctly. Include a drop-in JavaScript code snippet implementing a custom `modulePreload` polyfill to guarantee async chunk loading does not fail silently on older target browsers.

Example Text Output

"The AI will provide a strategic approach to React.lazy() integration within Vite, including bundle pre-fetching logic."

More Web Components Prompts

View all →

Frequently Asked Questions

What is the "Advanced AI Prompt for Vite Dynamic Import and Code Splitting Orchestration" prompt used for?

The AI will provide a strategic approach to React.lazy() integration within Vite, including bundle pre-fetching logic.

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.