Home / Type/ ModulePreloadOptions Type — vite Architecture

ModulePreloadOptions Type — vite Architecture

Architecture documentation for the ModulePreloadOptions type/interface in build.ts from the vite codebase.

Entity Profile

Dependency Diagram

graph TD
  330d6394_3dad_004b_9eda_2fc7464a1a16["ModulePreloadOptions"]
  45981d85_cbdd_e969_8c88_c17072ea0eda["build.ts"]
  330d6394_3dad_004b_9eda_2fc7464a1a16 -->|defined in| 45981d85_cbdd_e969_8c88_c17072ea0eda
  style 330d6394_3dad_004b_9eda_2fc7464a1a16 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/vite/src/node/build.ts lines 338–350

export interface ModulePreloadOptions {
  /**
   * Whether to inject a module preload polyfill.
   * Note: does not apply to library mode.
   * @default true
   */
  polyfill?: boolean
  /**
   * Resolve the list of dependencies to preload for a given dynamic import
   * @experimental
   */
  resolveDependencies?: ResolveModulePreloadDependenciesFn
}

Frequently Asked Questions

What is the ModulePreloadOptions type?
ModulePreloadOptions is a type/interface in the vite codebase, defined in packages/vite/src/node/build.ts.
Where is ModulePreloadOptions defined?
ModulePreloadOptions is defined in packages/vite/src/node/build.ts at line 338.

Analyze Your Own Codebase

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

Try Supermodel Free