easysql/node_modules/vite-plugin-electron/dist/utils.d.ts
2025-12-29 18:35:04 +08:00

12 lines
675 B
TypeScript

import { type InlineConfig, type ViteDevServer } from 'vite';
import type { ElectronOptions } from '.';
/** Resolve the default Vite's `InlineConfig` for build Electron-Main */
export declare function resolveViteConfig(options: ElectronOptions): InlineConfig;
export declare function withExternalBuiltins(config: InlineConfig): InlineConfig;
/**
* @see https://github.com/vitejs/vite/blob/v4.0.1/packages/vite/src/node/constants.ts#L137-L147
*/
export declare function resolveHostname(hostname: string): string;
export declare function resolveServerUrl(server: ViteDevServer): string | void;
export declare function calcEntryCount(optionsArray: ElectronOptions[]): number;