Home / Type/ DepOptimizationOptions Type — vite Architecture

DepOptimizationOptions Type — vite Architecture

Architecture documentation for the DepOptimizationOptions type/interface in index.ts from the vite codebase.

Entity Profile

Dependency Diagram

graph TD
  1f4f2d3b_4db2_6576_35cb_ce0412606f63["DepOptimizationOptions"]
  2f328851_91ee_fb05_63f0_4f466b9d6250["index.ts"]
  1f4f2d3b_4db2_6576_35cb_ce0412606f63 -->|defined in| 2f328851_91ee_fb05_63f0_4f466b9d6250
  style 1f4f2d3b_4db2_6576_35cb_ce0412606f63 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/vite/src/node/optimizer/index.ts lines 176–193

export type DepOptimizationOptions = DepOptimizationConfig & {
  /**
   * By default, Vite will crawl your `index.html` to detect dependencies that
   * need to be pre-bundled. If `build.rollupOptions.input` is specified, Vite
   * will crawl those entry points instead.
   *
   * If neither of these fit your needs, you can specify custom entries using
   * this option - the value should be a tinyglobby pattern or array of patterns
   * (https://github.com/SuperchupuDev/tinyglobby) that are relative from
   * vite project root. This will overwrite default entries inference.
   */
  entries?: string | string[]
  /**
   * Force dep pre-optimization regardless of whether deps have changed.
   * @experimental
   */
  force?: boolean
}

Frequently Asked Questions

What is the DepOptimizationOptions type?
DepOptimizationOptions is a type/interface in the vite codebase, defined in packages/vite/src/node/optimizer/index.ts.
Where is DepOptimizationOptions defined?
DepOptimizationOptions is defined in packages/vite/src/node/optimizer/index.ts at line 176.

Analyze Your Own Codebase

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

Try Supermodel Free