Home / Function/ constructor() — vite Function Reference

constructor() — vite Function Reference

Architecture documentation for the constructor() function in fullBundleEnvironment.ts from the vite codebase.

Entity Profile

Dependency Diagram

graph TD
  4ae1a360_4ea9_bed5_a7fe_a0731ef954f2["constructor()"]
  8fcd8920_61ef_93b8_499a_c18a48b852e5["FullBundleDevEnvironment"]
  4ae1a360_4ea9_bed5_a7fe_a0731ef954f2 -->|defined in| 8fcd8920_61ef_93b8_499a_c18a48b852e5
  6ea66dc7_258c_4d4e_457c_a36e57776e88["constructor()"]
  4ae1a360_4ea9_bed5_a7fe_a0731ef954f2 -->|calls| 6ea66dc7_258c_4d4e_457c_a36e57776e88
  style 4ae1a360_4ea9_bed5_a7fe_a0731ef954f2 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/vite/src/node/server/environments/fullBundleEnvironment.ts lines 76–88

  constructor(
    name: string,
    config: ResolvedConfig,
    context: DevEnvironmentContext,
  ) {
    if (name !== 'client') {
      throw new Error(
        'currently full bundle mode is only available for client environment',
      )
    }

    super(name, config, { ...context, disableDepsOptimizer: true })
  }

Domain

Subdomains

Frequently Asked Questions

What does constructor() do?
constructor() is a function in the vite codebase, defined in packages/vite/src/node/server/environments/fullBundleEnvironment.ts.
Where is constructor() defined?
constructor() is defined in packages/vite/src/node/server/environments/fullBundleEnvironment.ts at line 76.
What does constructor() call?
constructor() calls 1 function(s): constructor.

Analyze Your Own Codebase

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

Try Supermodel Free