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

Advanced AI Prompt for Vite Module Federation and Micro-frontend Performance

Customize the variables below to instantly engineer your prompt.

Required Variables

advanced-ai-prompt-vite-module-federation.txt
Act as an Enterprise Micro-frontend Architect. Implement a highly complex, robust Vite-based Module Federation architecture utilizing `@originjs/vite-plugin-federation`. You must define a strict 'Host' and 'Remote' bidirectional architecture where the specific [REMOTE_APPS] are safely consumed at runtime. Surgically optimize the [SHARED_DEPENDENCIES] configuration block to guarantee that massive libraries like `react` and `react-dom` are loaded as absolute singletons, mathematically eliminating version mismatch crashes and redundant bundle bloat across the network. Provide the exact dual `vite.config.ts` setups (one for Host, one for Remote) and detail the proxying strategies required for seamless local development and CORS management before production deployment.

Example Text Output

"The AI will generate a dual-config strategy (Host/Remote) that optimizes shared state and minimizes network overhead for federated modules."

More Web Components Prompts

View all →

Frequently Asked Questions

What is the "Advanced AI Prompt for Vite Module Federation and Micro-frontend Performance" prompt used for?

The AI will generate a dual-config strategy (Host/Remote) that optimizes shared state and minimizes network overhead for federated modules.

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.