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

Advanced AI Prompt for Custom Rollup Plugins for Vite Builds

Customize the variables below to instantly engineer your prompt.

Required Variables

advanced-ai-prompt-vite-custom-rollup-plugin.txt
Act as a Core Build Tooling Developer. Engineer a bespoke, inline Rollup plugin embedded directly into a `vite.config.ts` configuration file that executes highly specific [CUSTOM_TRANSFORM_LOGIC] (e.g., stripping all `console.log` statements, obfuscating specific strings, or injecting dynamic build-time metadata hashes directly into the React code). The plugin must tap directly into the Rollup AST during the precise [HOOK_NAME] lifecycle hook (e.g., `transform` or `renderChunk`). Provide the flawless TypeScript implementation of this plugin, including sourcemap generation, and technically explain exactly where within the Vite `plugins: []` array it must physically reside (using `enforce: 'pre'` or `'post'`) to avoid catastrophic conflicts with Vite's internal React/Esbuild plugins.

Example Text Output

"The AI will script a robust Rollup plugin integrated directly into the Vite config for specialized build-time processing."

More Web Components Prompts

View all →

Frequently Asked Questions

What is the "Advanced AI Prompt for Custom Rollup Plugins for Vite Builds" prompt used for?

The AI will script a robust Rollup plugin integrated directly into the Vite config for specialized build-time processing.

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.