You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
476 B
TypeScript
20 lines
476 B
TypeScript
import { Plugin } from 'vite';
|
|
|
|
interface Options {
|
|
/**
|
|
* Milliseconds to wait before writing the package.json file.
|
|
*
|
|
* @default 1000
|
|
*/
|
|
delay?: number;
|
|
/**
|
|
* Filter predictor for modules to include
|
|
*
|
|
* @default truthy predictor
|
|
*/
|
|
filter?: (includeModule: string) => boolean;
|
|
}
|
|
declare function VitePluginOptimizePersist({ delay, filter }?: Options): Plugin;
|
|
|
|
export { Options, VitePluginOptimizePersist as default };
|