Prompt Buddy logoPrompt Buddy

vite · Vite Docs

Vite Vite Environment API for Frameworks

Explains how to implement the Vite Environment API to build framework-agnostic build tools and integrate custom environments into the Vite ecosystem.

Import to Prompt Buddy

Derived skill

Files assembled from official documentation

Viewing SKILL.md

Vite Vite Environment API for Frameworks

Explains how to implement the Vite Environment API to build framework-agnostic build tools and integrate custom environments into the Vite ecosystem.

When To Use

Use when implementing a custom framework integration or building a plugin that needs to manage its own environment lifecycle within Vite.

Reference Files

FileContainsUse For
SKILL.mdEntry point: scope, routing table, and workflow.Start here.
docs/vite-environment-api-for-frameworks-workflow-guide.mdDocumentation explaining the Vite Environment API including DevEnvironment communication levels, RunnableDevEnvironment, and FetchableDevEnvironment.Questions about documentation explaining the Vite Environment API including DevEnvironment communication levels, RunnableDevEnvironme...
examples/vite-environment-api-for-frameworks-vite-environment-api-runnable-dev-en.textA TypeScript code example demonstrating the implementation of the RunnableDevEnvironment class within the Vite Environment API.Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating the implementation of the RunnableDevEnvironment class within the Vite Enviro...
examples/vite-environment-api-for-frameworks-vite-environment-api-frameworks-node.textA JavaScript code example demonstrating how to configure and access the Vite Environment API using a custom server setup.Exact payloads, commands, or snippets shown in A JavaScript code example demonstrating how to configure and access the Vite Environment API using a custom server se...
examples/vite-environment-api-for-frameworks-vite-environment-api-frameworks-entr.textA JavaScript implementation of a server entry point demonstrating the use of the Vite Environment API for framework integration.Exact payloads, commands, or snippets shown in A JavaScript implementation of a server entry point demonstrating the use of the Vite Environment API for framework i...
examples/vite-environment-api-for-frameworks-vite-environment-api-custom-dev-envi.textA code example demonstrating how to implement a custom dev environment using the Vite Environment API and createFetchableDevEnvironment.Exact payloads, commands, or snippets shown in A code example demonstrating how to implement a custom dev environment using the Vite Environment API and createFetch...
examples/vite-environment-api-for-frameworks-vite-environment-api-framework-plugi.textA JavaScript code example demonstrating how to use the Vite Environment API within a plugin to interact with the SSR environment.Exact payloads, commands, or snippets shown in A JavaScript code example demonstrating how to use the Vite Environment API within a plugin to interact with the SSR...
examples/vite-environment-api-for-frameworks-vite-environment-api-plugin-virtual-.textA TypeScript code example demonstrating how to use the Vite Environment API to implement a plugin that handles virtual modules.Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to use the Vite Environment API to implement a plugin that handles virtua...
examples/vite-environment-api-for-frameworks-vite-environment-api-frameworks-java.textA JavaScript code example demonstrating how to use the Vite Environment API to interact with SSR environments within a plugin.Exact payloads, commands, or snippets shown in A JavaScript code example demonstrating how to use the Vite Environment API to interact with SSR environments within...
examples/vite-environment-api-for-frameworks-vite-environment-api-framework-build.textA JavaScript code example demonstrating how to use the buildApp hook within the Vite Environment API to iterate through and build all available environments.Exact payloads, commands, or snippets shown in A JavaScript code example demonstrating how to use the buildApp hook within the Vite Environment API to iterate throu...

What This Skill Covers

  • Are you an LLM? You can read better optimized documentation at /guide/api-environment-frameworks.md for this page in Markdown format
  • Main sections: DevEnvironment Communication Levels ​, RunnableDevEnvironment ​, FetchableDevEnvironment ​, raw DevEnvironment ​, Environments During Build ​.

Workflow

  1. Open the most relevant file under docs/ for the exact documented workflow and wording.
  2. Open schemas/ files for exact structured contracts.
  3. Open examples/ files for concrete requests, commands, snippets, and manifests.
  4. Do not add behavior or configuration that is not present in the attached source files.

Canonical source: https://vite.dev/guide/api-environment-frameworks