You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
66 lines
1.4 KiB
66 lines
1.4 KiB
type FilterPattern = ReadonlyArray<string | RegExp> | string | RegExp | null;
|
|
interface ViteInspectOptions {
|
|
/**
|
|
* Enable the inspect plugin in dev mode (could be some performance overhead)
|
|
*
|
|
* @default true
|
|
*/
|
|
dev?: boolean;
|
|
/**
|
|
* Enable the inspect plugin in build mode, and output the report to `.vite-inspect`
|
|
*
|
|
* @default false
|
|
*/
|
|
build?: boolean;
|
|
/**
|
|
* @deprecated use `dev` or `build` option instead.
|
|
*/
|
|
enabled?: boolean;
|
|
/**
|
|
* Directory for build inspector UI output
|
|
* Only work in build mode
|
|
*
|
|
* @default '.vite-inspect'
|
|
*/
|
|
outputDir?: string;
|
|
/**
|
|
* Filter for modules to be inspected
|
|
*/
|
|
include?: FilterPattern;
|
|
/**
|
|
* Filter for modules to not be inspected
|
|
*/
|
|
exclude?: FilterPattern;
|
|
/**
|
|
* Base URL for inspector UI
|
|
*
|
|
* @default read from Vite's config
|
|
*/
|
|
base?: string;
|
|
/**
|
|
* Print URL output silently in the terminal
|
|
*
|
|
* @default false
|
|
*/
|
|
silent?: boolean;
|
|
/**
|
|
* Automatically open inspect page
|
|
*
|
|
* @default false
|
|
*/
|
|
open?: boolean;
|
|
/**
|
|
* Remove version query `?v=xxx` and treat them as the same module
|
|
*
|
|
* @default true
|
|
*/
|
|
removeVersionQuery?: boolean;
|
|
/**
|
|
* Enable embedded mode
|
|
*
|
|
* @default false
|
|
*/
|
|
embedded?: boolean;
|
|
}
|
|
|
|
export type { FilterPattern as F, ViteInspectOptions as V };
|