Home / File/ manifest.ts — vite Source File

manifest.ts — vite Source File

Architecture documentation for manifest.ts, a typescript file in the vite codebase. 12 imports, 2 dependents.

File typescript PluginSystem LegacySupport 12 imports 2 dependents 2 functions

Entity Profile

Dependency Diagram

graph LR
  7dd0ce14_b7e1_7049_f318_2603b5403c04["manifest.ts"]
  5abb8c87_ffcb_f2d4_7421_e36705d9e5c7["plugin.ts"]
  7dd0ce14_b7e1_7049_f318_2603b5403c04 --> 5abb8c87_ffcb_f2d4_7421_e36705d9e5c7
  1dc2cf7d_5d97_c778_8c33_6449a7607aef["Plugin"]
  7dd0ce14_b7e1_7049_f318_2603b5403c04 --> 1dc2cf7d_5d97_c778_8c33_6449a7607aef
  031bc221_67a8_c579_f2bf_bb30a08beeb2["utils.ts"]
  7dd0ce14_b7e1_7049_f318_2603b5403c04 --> 031bc221_67a8_c579_f2bf_bb30a08beeb2
  a4adb1a7_cf54_091f_eb63_8217e684a8e1["normalizePath"]
  7dd0ce14_b7e1_7049_f318_2603b5403c04 --> a4adb1a7_cf54_091f_eb63_8217e684a8e1
  b8325ee3_313b_4bc2_ecfd_3e3b5441a5f3["sortObjectKeys"]
  7dd0ce14_b7e1_7049_f318_2603b5403c04 --> b8325ee3_313b_4bc2_ecfd_3e3b5441a5f3
  0c33ff62_54e9_5c90_902b_b26728e71fca["environment.ts"]
  7dd0ce14_b7e1_7049_f318_2603b5403c04 --> 0c33ff62_54e9_5c90_902b_b26728e71fca
  16a00926_f0e9_60f1_3006_9132a6d78745["perEnvironmentState"]
  7dd0ce14_b7e1_7049_f318_2603b5403c04 --> 16a00926_f0e9_60f1_3006_9132a6d78745
  e71b94ef_3010_e358_13d8_f3b3acb0a268["asset.ts"]
  7dd0ce14_b7e1_7049_f318_2603b5403c04 --> e71b94ef_3010_e358_13d8_f3b3acb0a268
  51e96894_3556_ed5c_1ede_97d449867adf["node:path"]
  7dd0ce14_b7e1_7049_f318_2603b5403c04 --> 51e96894_3556_ed5c_1ede_97d449867adf
  693ca867_249b_3e5a_0ce1_8930413b7fcd["rolldown"]
  7dd0ce14_b7e1_7049_f318_2603b5403c04 --> 693ca867_249b_3e5a_0ce1_8930413b7fcd
  8632597a_0333_2fd2_cdb3_954e50be6e8d["experimental"]
  7dd0ce14_b7e1_7049_f318_2603b5403c04 --> 8632597a_0333_2fd2_cdb3_954e50be6e8d
  2616bf8c_8895_7af5_fb6e_8424b9e71ea7[".."]
  7dd0ce14_b7e1_7049_f318_2603b5403c04 --> 2616bf8c_8895_7af5_fb6e_8424b9e71ea7
  45981d85_cbdd_e969_8c88_c17072ea0eda["build.ts"]
  45981d85_cbdd_e969_8c88_c17072ea0eda --> 7dd0ce14_b7e1_7049_f318_2603b5403c04
  c3eb47df_971b_0616_6c9f_29b3ded72224["css.ts"]
  c3eb47df_971b_0616_6c9f_29b3ded72224 --> 7dd0ce14_b7e1_7049_f318_2603b5403c04
  style 7dd0ce14_b7e1_7049_f318_2603b5403c04 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import path from 'node:path'
import type { OutputAsset, OutputChunk, RenderedChunk } from 'rolldown'
import { viteManifestPlugin as nativeManifestPlugin } from 'rolldown/experimental'
import type { Plugin } from '../plugin'
import { normalizePath, sortObjectKeys } from '../utils'
import { perEnvironmentState } from '../environment'
import { type Environment, type ResolvedConfig, perEnvironmentPlugin } from '..'
import { cssEntriesMap } from './asset'

const endsWithJSRE = /\.[cm]?js$/

export type Manifest = Record<string, ManifestChunk>

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[]
}

export function manifestPlugin(config: ResolvedConfig): Plugin {
// ... (291 more lines)

Domain

Subdomains

Frequently Asked Questions

What does manifest.ts do?
manifest.ts is a source file in the vite codebase, written in typescript. It belongs to the PluginSystem domain, LegacySupport subdomain.
What functions are defined in manifest.ts?
manifest.ts defines 2 function(s): getChunkOriginalFileName, manifestPlugin.
What does manifest.ts depend on?
manifest.ts imports 12 module(s): .., Plugin, asset.ts, environment.ts, experimental, node:path, normalizePath, perEnvironmentState, and 4 more.
What files import manifest.ts?
manifest.ts is imported by 2 file(s): build.ts, css.ts.
Where is manifest.ts in the architecture?
manifest.ts is located at packages/vite/src/node/plugins/manifest.ts (domain: PluginSystem, subdomain: LegacySupport, directory: packages/vite/src/node/plugins).

Analyze Your Own Codebase

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

Try Supermodel Free