vite

Configures Vite build tooling including Rolldown migration, SSR workflows, and plugin hooks.

7|1|Updated May 16, 2026
One-click install
npx skills add https://github.com/ethan-krich/plannar --skill vite-ethan-krich
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vite
Source: https://github.com/ethan-krich/plannar/tree/main/.agents/skills/vite
Command: npx skills add https://github.com/ethan-krich/plannar --skill vite-ethan-krich

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

It helps developers correctly set up and evolve Vite configurations for fast client builds, library output, and SSR workflows—especially when migrating to Vite 8’s Rolldown-based pipeline.

Core Features & Use Cases

  • Vite configuration patterns: How to structure vite.config.ts with defineConfig, conditional logic, and environment loading via loadEnv.
  • Build and SSR guidance: Library mode, multi-page inputs, and low-level SSR primitives like createServer, build, preview, and ssrLoadModule.
  • Plugin and ecosystem integration: Understanding Vite plugin hooks, plugin ordering, and when to use environment-aware transformations.
  • Vite 8 migration readiness: Practical mapping from rollupOptions/esbuild patterns to rolldownOptions/Oxc transformer configuration.

Quick Start

Ask the AI: "Given my project uses Vite 8, how should I write a vite.config.ts that supports a library build and provides the right Rolldown migration settings and plugin structure?"

Frequently Asked Questions about vite

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I configure vite.config.ts for library mode and SSR builds?

To configure vite.config.ts for library mode and SSR builds, structure your configuration using defineConfig with conditional logic. For SSR workflows, utilize low-level primitives like createServer, build, preview, and ssrLoadModule.

How do I migrate Vite configuration to Vite 8 Rolldown and Oxc?

Migrating to Vite 8 Rolldown and Oxc requires mapping your existing rollupOptions and esbuild patterns to rolldownOptions and Oxc transformer settings within your vite.config.ts file.

What is the correct way to structure Vite plugins and use hooks?

Structuring Vite plugins requires understanding plugin hooks and plugin ordering to ensure correct execution. Use environment-aware transformations when your plugin logic depends on specific build contexts.

How do I load environment variables in Vite configuration?

To load environment variables in Vite configuration, use the loadEnv function within your vite.config.ts file. This allows you to conditionally apply environment-specific logic during the build process.

Does Vite support multi-page application inputs?

Vite supports multi-page application inputs by configuring multiple entry points in your build settings. This allows you to manage complex application structures within a single Vite configuration.