getDevEnvironment() — vite Function Reference
Architecture documentation for the getDevEnvironment() function in pluginContainer.spec.ts from the vite codebase.
Entity Profile
Dependency Diagram
graph TD ee113a86_da26_172f_fe42_9dff7c10af7c["getDevEnvironment()"] b6abf7ed_980d_66f5_f5ed_f5c1a029e590["pluginContainer.spec.ts"] ee113a86_da26_172f_fe42_9dff7c10af7c -->|defined in| b6abf7ed_980d_66f5_f5ed_f5c1a029e590 58c4a210_68fe_1b4d_ed49_d59203f97ef1["resolveConfig()"] ee113a86_da26_172f_fe42_9dff7c10af7c -->|calls| 58c4a210_68fe_1b4d_ed49_d59203f97ef1 5d79d65d_2f96_8145_d09b_a6354feab599["init()"] ee113a86_da26_172f_fe42_9dff7c10af7c -->|calls| 5d79d65d_2f96_8145_d09b_a6354feab599 style ee113a86_da26_172f_fe42_9dff7c10af7c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/vite/src/node/server/__tests__/pluginContainer.spec.ts lines 432–447
async function getDevEnvironment(
inlineConfig?: UserConfig,
): Promise<DevEnvironment> {
const config = await resolveConfig(
{ configFile: false, ...inlineConfig },
'serve',
)
// @ts-expect-error This plugin requires a ViteDevServer instance.
config.plugins = config.plugins.filter((p) => !p.name.includes('pre-alias'))
const environment = new DevEnvironment('client', config, { hot: true })
await environment.init()
return environment
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does getDevEnvironment() do?
getDevEnvironment() is a function in the vite codebase, defined in packages/vite/src/node/server/__tests__/pluginContainer.spec.ts.
Where is getDevEnvironment() defined?
getDevEnvironment() is defined in packages/vite/src/node/server/__tests__/pluginContainer.spec.ts at line 432.
What does getDevEnvironment() call?
getDevEnvironment() calls 2 function(s): init, resolveConfig.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free