utils.d.ts 594 B

12345678910
  1. import { type InlineConfig, type ViteDevServer } from 'vite';
  2. import type { ElectronOptions } from '.';
  3. /** Resolve the default Vite's `InlineConfig` for build Electron-Main */
  4. export declare function resolveViteConfig(options: ElectronOptions): InlineConfig;
  5. export declare function withExternalBuiltins(config: InlineConfig): InlineConfig;
  6. /**
  7. * @see https://github.com/vitejs/vite/blob/v4.0.1/packages/vite/src/node/constants.ts#L137-L147
  8. */
  9. export declare function resolveHostname(hostname: string): string;
  10. export declare function resolveServerUrl(server: ViteDevServer): string | void;