getDefaultEnvironmentOptions() — vite Function Reference
Architecture documentation for the getDefaultEnvironmentOptions() function in config.ts from the vite codebase.
Entity Profile
Dependency Diagram
graph TD cb52fc09_c76d_736c_e189_4a86e769d5ca["getDefaultEnvironmentOptions()"] 7da774f9_eca5_d54e_6e01_6bee7d460a2b["config.ts"] cb52fc09_c76d_736c_e189_4a86e769d5ca -->|defined in| 7da774f9_eca5_d54e_6e01_6bee7d460a2b 58c4a210_68fe_1b4d_ed49_d59203f97ef1["resolveConfig()"] 58c4a210_68fe_1b4d_ed49_d59203f97ef1 -->|calls| cb52fc09_c76d_736c_e189_4a86e769d5ca style cb52fc09_c76d_736c_e189_4a86e769d5ca fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/vite/src/node/config.ts lines 993–1007
export function getDefaultEnvironmentOptions(
config: UserConfig,
): EnvironmentOptions {
return {
define: config.define,
resolve: {
...config.resolve,
// mainFields and conditions are not inherited
mainFields: undefined,
conditions: undefined,
},
dev: config.dev,
build: config.build,
}
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does getDefaultEnvironmentOptions() do?
getDefaultEnvironmentOptions() is a function in the vite codebase, defined in packages/vite/src/node/config.ts.
Where is getDefaultEnvironmentOptions() defined?
getDefaultEnvironmentOptions() is defined in packages/vite/src/node/config.ts at line 993.
What calls getDefaultEnvironmentOptions()?
getDefaultEnvironmentOptions() is called by 1 function(s): resolveConfig.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free