Home / Function/ pluginContainer() — vite Function Reference

pluginContainer() — vite Function Reference

Architecture documentation for the pluginContainer() function in environment.ts from the vite codebase.

Entity Profile

Dependency Diagram

graph TD
  85e1964a_55f8_22ab_02ed_c666202e1669["pluginContainer()"]
  f634223d_ed8e_a65b_08f8_a839ec17994a["DevEnvironment"]
  85e1964a_55f8_22ab_02ed_c666202e1669 -->|defined in| f634223d_ed8e_a65b_08f8_a839ec17994a
  a85be14c_f2f5_f5e8_54fc_94b79f95354a["pluginContainer()"]
  a85be14c_f2f5_f5e8_54fc_94b79f95354a -->|calls| 85e1964a_55f8_22ab_02ed_c666202e1669
  24ecf2a1_3c09_d451_76f3_9485b4e993f8["_createServer()"]
  24ecf2a1_3c09_d451_76f3_9485b4e993f8 -->|calls| 85e1964a_55f8_22ab_02ed_c666202e1669
  style 85e1964a_55f8_22ab_02ed_c666202e1669 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/vite/src/node/server/environment.ts lines 65–71

  get pluginContainer(): EnvironmentPluginContainer<DevEnvironment> {
    if (!this._pluginContainer)
      throw new Error(
        `${this.name} environment.pluginContainer called before initialized`,
      )
    return this._pluginContainer
  }

Domain

Subdomains

Frequently Asked Questions

What does pluginContainer() do?
pluginContainer() is a function in the vite codebase, defined in packages/vite/src/node/server/environment.ts.
Where is pluginContainer() defined?
pluginContainer() is defined in packages/vite/src/node/server/environment.ts at line 65.
What calls pluginContainer()?
pluginContainer() is called by 2 function(s): _createServer, pluginContainer.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free