vite-core-environment-api

Official

Isolate and upgrade Vite Environment API safely.

AuthorOpenAEC-Foundation
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Vite 6 introduces explicit environments; this skill helps configure per-environment settings to prevent using outdated Vite 5 patterns and misconfigurations.

Core Features & Use Cases

  • Provide explicit per-environment configuration to manage client, server, and edge environments with inheritance and overrides.
  • Support provider-based environments and migration guidance from Vite 5 implicit environments to Vite 6 explicit environments.
  • Ensure correct use of EnvironmentOptions fields like define, resolve, consumer, dev, and build to maintain compatibility and prevent runtime errors.

Quick Start

Create a vite.config.js that defines a server environment with consumer: 'server' and a distinct build.outDir, then run the dev server to verify environment separation.

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: vite-core-environment-api
Download link: https://github.com/OpenAEC-Foundation/OpenAEC-Workspace-Composer/archive/main.zip#vite-core-environment-api

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.