LibraryOptions Type — vite Architecture
Architecture documentation for the LibraryOptions type/interface in build.ts from the vite codebase.
Entity Profile
Dependency Diagram
graph TD d20164cd_247c_9121_2cec_43e59b542b6f["LibraryOptions"] 45981d85_cbdd_e969_8c88_c17072ea0eda["build.ts"] d20164cd_247c_9121_2cec_43e59b542b6f -->|defined in| 45981d85_cbdd_e969_8c88_c17072ea0eda style d20164cd_247c_9121_2cec_43e59b542b6f fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/vite/src/node/build.ts lines 307–334
export interface LibraryOptions {
/**
* Path of library entry
*/
entry: InputOption
/**
* The name of the exposed global variable. Required when the `formats` option includes
* `umd` or `iife`
*/
name?: string
/**
* Output bundle formats
* @default ['es', 'umd']
*/
formats?: LibraryFormats[]
/**
* The name of the package file output. The default file name is the name option
* of the project package.json. It can also be defined as a function taking the
* format as an argument.
*/
fileName?: string | ((format: ModuleFormat, entryName: string) => string)
/**
* The name of the CSS file output if the library imports CSS. Defaults to the
* same value as `build.lib.fileName` if it's set a string, otherwise it falls
* back to the name option of the project package.json.
*/
cssFileName?: string
}
Defined In
Source
Frequently Asked Questions
What is the LibraryOptions type?
LibraryOptions is a type/interface in the vite codebase, defined in packages/vite/src/node/build.ts.
Where is LibraryOptions defined?
LibraryOptions is defined in packages/vite/src/node/build.ts at line 307.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free