Home / Type/ ExperimentalOptions Type — vite Architecture

ExperimentalOptions Type — vite Architecture

Architecture documentation for the ExperimentalOptions type/interface in config.ts from the vite codebase.

Entity Profile

Dependency Diagram

graph TD
  3eda776e_9644_8feb_c419_98877195aa82["ExperimentalOptions"]
  7da774f9_eca5_d54e_6e01_6bee7d460a2b["config.ts"]
  3eda776e_9644_8feb_c419_98877195aa82 -->|defined in| 7da774f9_eca5_d54e_6e01_6bee7d460a2b
  style 3eda776e_9644_8feb_c419_98877195aa82 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/vite/src/node/config.ts lines 547–588

export interface ExperimentalOptions {
  /**
   * Append fake `&lang.(ext)` when queries are specified, to preserve the file extension for following plugins to process.
   *
   * @experimental
   * @default false
   */
  importGlobRestoreExtension?: boolean
  /**
   * Allow finegrain control over assets and public files paths
   *
   * @experimental
   */
  renderBuiltUrl?: RenderBuiltAssetUrl
  /**
   * Enables support of HMR partial accept via `import.meta.hot.acceptExports`.
   *
   * @experimental
   * @default false
   */
  hmrPartialAccept?: boolean
  /**
   * Enable builtin plugin that written by rust, which is faster than js plugin.
   *
   * - 'v1' (will be deprecated, will be removed in v8 stable): Enable the first stable set of native plugins.
   * - 'v2' (will be deprecated, will be removed in v8 stable): Enable the improved dynamicImportVarsPlugin and importGlobPlugin.
   * - true: Enable all native plugins (currently an alias of 'v2', it will map to a newer one in the future versions).
   *
   * @experimental
   * @default 'v2'
   */
  enableNativePlugin?: boolean | 'v1' | 'v2'
  /**
   * Enable full bundle mode.
   *
   * This is highly experimental.
   *
   * @experimental
   * @default false
   */
  bundledDev?: boolean
}

Frequently Asked Questions

What is the ExperimentalOptions type?
ExperimentalOptions is a type/interface in the vite codebase, defined in packages/vite/src/node/config.ts.
Where is ExperimentalOptions defined?
ExperimentalOptions is defined in packages/vite/src/node/config.ts at line 547.

Analyze Your Own Codebase

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

Try Supermodel Free