Home / Type/ ImportGlobOptions Type — vite Architecture

ImportGlobOptions Type — vite Architecture

Architecture documentation for the ImportGlobOptions type/interface in importGlob.d.ts from the vite codebase.

Entity Profile

Dependency Diagram

graph TD
  b92ae553_1cd7_4c1d_c6bb_e6257b2d0cbb["ImportGlobOptions"]
  ad1826d8_837d_8a0e_cde0_18df1e7a6131["importGlob.d.ts"]
  b92ae553_1cd7_4c1d_c6bb_e6257b2d0cbb -->|defined in| ad1826d8_837d_8a0e_cde0_18df1e7a6131
  style b92ae553_1cd7_4c1d_c6bb_e6257b2d0cbb fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/vite/types/importGlob.d.ts lines 1–35

export interface ImportGlobOptions<
  Eager extends boolean,
  AsType extends string,
> {
  /**
   * Import type for the import url.
   *
   * @deprecated Use `query` instead, e.g. `as: 'url'` -> `query: '?url', import: 'default'`
   */
  as?: AsType
  /**
   * Import as static or dynamic
   *
   * @default false
   */
  eager?: Eager
  /**
   * Import only the specific named export. Set to `default` to import the default export.
   */
  import?: string
  /**
   * Custom queries
   */
  query?: string | Record<string, string | number | boolean>
  /**
   * Search files also inside `node_modules/` and hidden directories (e.g. `.git/`). This might have impact on performance.
   *
   * @default false
   */
  exhaustive?: boolean
  /**
   * Base path to resolve relative paths.
   */
  base?: string
}

Frequently Asked Questions

What is the ImportGlobOptions type?
ImportGlobOptions is a type/interface in the vite codebase, defined in packages/vite/types/importGlob.d.ts.
Where is ImportGlobOptions defined?
ImportGlobOptions is defined in packages/vite/types/importGlob.d.ts at line 1.

Analyze Your Own Codebase

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

Try Supermodel Free