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.
26 lines
610 B
TypeScript
26 lines
610 B
TypeScript
|
2 years ago
|
import { Plugin } from 'vite';
|
||
|
|
|
||
|
|
interface Options {
|
||
|
|
/**
|
||
|
|
* @default 'package.json'
|
||
|
|
*/
|
||
|
|
packageJsonPath?: string;
|
||
|
|
/**
|
||
|
|
* Field name in package.json to merge with Vite's config
|
||
|
|
*
|
||
|
|
* @default 'vite'
|
||
|
|
*/
|
||
|
|
field?: string;
|
||
|
|
}
|
||
|
|
interface VitePluginPackageConfigPlugin extends Plugin {
|
||
|
|
api: {
|
||
|
|
options: {
|
||
|
|
packageJsonPath: string;
|
||
|
|
field: string;
|
||
|
|
};
|
||
|
|
};
|
||
|
|
}
|
||
|
|
declare function VitePluginPackageConfig(options?: Options): VitePluginPackageConfigPlugin;
|
||
|
|
|
||
|
|
export { Options, VitePluginPackageConfigPlugin, VitePluginPackageConfig as default };
|