SharedEnvironmentOptions Type — vite Architecture
Architecture documentation for the SharedEnvironmentOptions type/interface in config.ts from the vite codebase.
Entity Profile
Dependency Diagram
graph TD 2623ee70_979e_9719_dfdc_a3bc5e71aee4["SharedEnvironmentOptions"] 7da774f9_eca5_d54e_6e01_6bee7d460a2b["config.ts"] 2623ee70_979e_9719_dfdc_a3bc5e71aee4 -->|defined in| 7da774f9_eca5_d54e_6e01_6bee7d460a2b style 2623ee70_979e_9719_dfdc_a3bc5e71aee4 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/vite/src/node/config.ts lines 280–304
export interface SharedEnvironmentOptions {
/**
* Define global variable replacements.
* Entries will be defined on `window` during dev and replaced during build.
*/
define?: Record<string, any>
/**
* Configure resolver
*/
resolve?: EnvironmentResolveOptions
/**
* Define if this environment is used for Server-Side Rendering
* @default 'server' if it isn't the client environment
*/
consumer?: 'client' | 'server'
/**
* If true, `process.env` referenced in code will be preserved as-is and evaluated in runtime.
* Otherwise, it is statically replaced as an empty object.
*/
keepProcessEnv?: boolean
/**
* Optimize deps config
*/
optimizeDeps?: DepOptimizationOptions
}
Defined In
Source
Frequently Asked Questions
What is the SharedEnvironmentOptions type?
SharedEnvironmentOptions is a type/interface in the vite codebase, defined in packages/vite/src/node/config.ts.
Where is SharedEnvironmentOptions defined?
SharedEnvironmentOptions is defined in packages/vite/src/node/config.ts at line 280.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free