Prompt Buddy logoPrompt Buddy

vite · Vite Docs

Environment API for Frameworks | Vite (main branch)

Explains how to implement the Vite Environment API to build framework-specific integrations that manage different environments and resource loading.

Import to Prompt Buddy

Derived skill

Files assembled from official documentation

Viewing SKILL.md

Environment API for Frameworks | Vite (main branch)

Explains how to implement the Vite Environment API to build framework-specific integrations that manage different environments and resource loading.

When To Use

Use when implementing a custom framework plugin that needs to leverage Vite's Environment API to handle environment-specific module resolution and execution contexts.

Reference Files

FileContainsUse For
SKILL.mdEntry point: scope, routing table, and workflow.Start here.
docs/main-vite-environment-api-for-frameworks-branch-workflow-guide.mdA guide explaining the Environment API for frameworks, including communication levels and environment types like DevEnvironment and FetchableDevEnvironment.Questions about a guide explaining the Environment API for frameworks, including communication levels and environment types like DevE...
examples/main-vite-environment-api-for-frameworks-branch-vite-environment-api-run.textA TypeScript code snippet demonstrating the implementation of the RunnableDevEnvironment class and its ModuleRunner property within the Vite Environment API.Exact payloads, commands, or snippets shown in A TypeScript code snippet demonstrating the implementation of the RunnableDevEnvironment class and its ModuleRunner p...
examples/main-vite-environment-api-for-frameworks-branch-vite-environment-api-fra.textA Node.js code example demonstrating how to use the Vite Environment API to create a custom server environment.Exact payloads, commands, or snippets shown in A Node.js code example demonstrating how to use the Vite Environment API to create a custom server environment.
examples/main-vite-environment-api-for-frameworks-branch-vite-environment-api-fra-2.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/main-vite-environment-api-for-frameworks-branch-vite-environment-api-fra-3.textA code example demonstrating how to implement a custom environment using the Vite Environment API within a custom server configuration.Exact payloads, commands, or snippets shown in A code example demonstrating how to implement a custom environment using the Vite Environment API within a custom ser...
examples/main-vite-environment-api-for-frameworks-branch-vite-environment-api-fra-4.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/main-vite-environment-api-for-frameworks-branch-vite-environment-api-fra-5.textA TypeScript implementation of a Vite plugin demonstrating how to use the Environment API to handle virtual modules within a framework context.Exact payloads, commands, or snippets shown in A TypeScript implementation of a Vite plugin demonstrating how to use the Environment API to handle virtual modules w...
examples/main-vite-environment-api-for-frameworks-branch-vite-environment-api-fra-6.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/main-vite-environment-api-for-frameworks-branch-vite-environment-api-fra-7.textA configuration example demonstrating how to use the Vite Environment API within a custom builder to iterate over and build multiple environments.Exact payloads, commands, or snippets shown in A configuration example demonstrating how to use the Vite Environment API within a custom builder to iterate over and...

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://main.vite.dev/guide/api-environment-frameworks