constructor() — vite Function Reference
Architecture documentation for the constructor() function in pluginContainer.ts from the vite codebase.
Entity Profile
Dependency Diagram
graph TD e09c4724_afb2_8289_1ee6_375b57d306ac["constructor()"] 285b1044_dd20_6f59_7cf5_0ad094eeacee["EnvironmentPluginContainer"] e09c4724_afb2_8289_1ee6_375b57d306ac -->|defined in| 285b1044_dd20_6f59_7cf5_0ad094eeacee 8e5f0af2_5386_8a8f_0cb4_1863cc4b1cdf["createPluginHookUtils()"] e09c4724_afb2_8289_1ee6_375b57d306ac -->|calls| 8e5f0af2_5386_8a8f_0cb4_1863cc4b1cdf style e09c4724_afb2_8289_1ee6_375b57d306ac fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/vite/src/node/server/pluginContainer.ts lines 201–217
constructor(
public environment: Env,
public plugins: readonly Plugin[],
public watcher?: FSWatcher | undefined,
autoStart = true,
) {
this._started = !autoStart
this.minimalContext = new MinimalPluginContext(
{ ...basePluginContextMeta, watchMode: true },
environment,
)
const utils = createPluginHookUtils(plugins)
this.getSortedPlugins = utils.getSortedPlugins
this.getSortedPluginHooks = utils.getSortedPluginHooks
this.moduleGraph =
environment.mode === 'dev' ? environment.moduleGraph : undefined
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does constructor() do?
constructor() is a function in the vite codebase, defined in packages/vite/src/node/server/pluginContainer.ts.
Where is constructor() defined?
constructor() is defined in packages/vite/src/node/server/pluginContainer.ts at line 201.
What does constructor() call?
constructor() calls 1 function(s): createPluginHookUtils.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free