Home / Type/ ManifestChunk Type — vite Architecture

ManifestChunk Type — vite Architecture

Architecture documentation for the ManifestChunk type/interface in manifest.ts from the vite codebase.

Entity Profile

Dependency Diagram

graph TD
  64b77e6a_54f8_410b_e452_cad60b6ec17e["ManifestChunk"]
  7dd0ce14_b7e1_7049_f318_2603b5403c04["manifest.ts"]
  64b77e6a_54f8_410b_e452_cad60b6ec17e -->|defined in| 7dd0ce14_b7e1_7049_f318_2603b5403c04
  style 64b77e6a_54f8_410b_e452_cad60b6ec17e fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/vite/src/node/plugins/manifest.ts lines 14–58

export interface ManifestChunk {
  /**
   * The input file name of this chunk / asset if known
   */
  src?: string
  /**
   * The output file name of this chunk / asset
   */
  file: string
  /**
   * The list of CSS files imported by this chunk
   */
  css?: string[]
  /**
   * The list of asset files imported by this chunk, excluding CSS files
   */
  assets?: string[]
  /**
   * Whether this chunk or asset is an entry point
   */
  isEntry?: boolean
  /**
   * The name of this chunk / asset if known
   */
  name?: string
  // names field is deprecated (removed from types, but still emitted for backward compatibility)
  /**
   * Whether this chunk is a dynamic entry point
   *
   * This field is only present in JS chunks.
   */
  isDynamicEntry?: boolean
  /**
   * The list of statically imported chunks by this chunk
   *
   * The values are the keys of the manifest. This field is only present in JS chunks.
   */
  imports?: string[]
  /**
   * The list of dynamically imported chunks by this chunk
   *
   * The values are the keys of the manifest. This field is only present in JS chunks.
   */
  dynamicImports?: string[]
}

Frequently Asked Questions

What is the ManifestChunk type?
ManifestChunk is a type/interface in the vite codebase, defined in packages/vite/src/node/plugins/manifest.ts.
Where is ManifestChunk defined?
ManifestChunk is defined in packages/vite/src/node/plugins/manifest.ts at line 14.

Analyze Your Own Codebase

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

Try Supermodel Free