UNPKG

vite

Version:

Native-ESM powered web dev build tool

36 lines (31 loc) 885 B
export interface ChunkMetadata { importedAssets: Set<string> importedCss: Set<string> } 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'] * ``` * * @experimental */ cssScopeTo?: readonly [importerId: string, exportName: string | undefined] /** @deprecated no-op since Vite 6.1 */ lang?: string } declare module 'rollup' { export interface RenderedChunk { viteMetadata?: ChunkMetadata } export interface CustomPluginOptions { vite?: CustomPluginOptionsVite } }