Options Type — vite Architecture
Architecture documentation for the Options type/interface in types.ts from the vite codebase.
Entity Profile
Dependency Diagram
graph TD 86772873_9e89_0694_fae4_6dda658eed12["Options"] 4f9da5f4_2720_8f92_92bb_2635a921fc15["types.ts"] 86772873_9e89_0694_fae4_6dda658eed12 -->|defined in| 4f9da5f4_2720_8f92_92bb_2635a921fc15 style 86772873_9e89_0694_fae4_6dda658eed12 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/plugin-legacy/src/types.ts lines 1–38
export interface Options {
/**
* default: 'defaults'
*/
targets?: string | string[] | Record<string, string>
/**
* default: 'edge>=79, firefox>=67, chrome>=64, safari>=12, chromeAndroid>=64, iOS>=12'
*/
modernTargets?: string | string[]
/**
* default: true
*/
polyfills?: boolean | string[]
additionalLegacyPolyfills?: string[]
additionalModernPolyfills?: string[]
/**
* default: false
*/
modernPolyfills?: boolean | string[]
/**
* default: true
*/
renderLegacyChunks?: boolean
/**
* default: false
*/
externalSystemJS?: boolean
/**
* default: true
*/
renderModernChunks?: boolean
/**
* @see https://babeljs.io/docs/assumptions
*
* default: {}
*/
assumptions?: Record<string, boolean>
}
Defined In
Source
Frequently Asked Questions
What is the Options type?
Options is a type/interface in the vite codebase, defined in packages/plugin-legacy/src/types.ts.
Where is Options defined?
Options is defined in packages/plugin-legacy/src/types.ts at line 1.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free