metadata.d.ts — vite Source File
Architecture documentation for metadata.d.ts, a typescript file in the vite codebase.
Entity Profile
Relationship Graph
Source Code
export interface AssetMetadata {
importedAssets: Set<string>
importedCss: Set<string>
}
export interface ChunkMetadata {
importedAssets: Set<string>
importedCss: Set<string>
/** @internal */
__modules: any
}
export interface CustomPluginOptionsVite {
/**
* If this is a CSS Rollup module, you can scope to its importer's exports
* so that if those exports are treeshaken away, the CSS module will also
* be treeshaken.
*
* The "importerId" must import the CSS Rollup module statically.
*
* Example config if the CSS id is `/src/App.vue?vue&type=style&lang.css`:
* ```js
* cssScopeTo: ['/src/App.vue', 'default']
* ```
*/
cssScopeTo?: readonly [importerId: string, exportName: string | undefined]
/** @deprecated no-op since Vite 6.1 */
lang?: string
}
declare module 'rolldown' {
export interface OutputAsset {
viteMetadata?: AssetMetadata
}
export interface RenderedChunk {
viteMetadata?: ChunkMetadata
}
export interface OutputChunk {
viteMetadata?: ChunkMetadata
}
export interface CustomPluginOptions {
vite?: CustomPluginOptionsVite
}
}
Classes
Types
Source
Frequently Asked Questions
What does metadata.d.ts do?
metadata.d.ts is a source file in the vite codebase, written in typescript.
Where is metadata.d.ts in the architecture?
metadata.d.ts is located at packages/vite/types/metadata.d.ts (directory: packages/vite/types).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free