import { PluginBase } from '@electron-forge/plugin-base'; import { Listr } from 'listr2'; import type { VitePluginConfig } from './Config.js'; import type { ForgeListrTask, ForgeMultiHookMap, ResolvedForgeConfig } from '@electron-forge/shared-types'; export default class VitePlugin extends PluginBase { private static alreadyStarted; name: string; private isProd; /** * Path to the root of the Electron app */ private projectDir; /** * Path where Vite output is generated. Usually `${projectDir}/.vite` */ private baseDir; private configGeneratorCache; private watchChildren; private servers; init: (dir: string) => void; setDirectories(dir: string): void; private get configGenerator(); getHooks: () => ForgeMultiHookMap; resolveForgeConfig: (forgeConfig: ResolvedForgeConfig) => Promise; packageAfterCopy: (_forgeConfig: ResolvedForgeConfig, buildPath: string) => Promise; /** * Serializable snapshot of the plugin config to pass to subprocess workers. * We only include build[] and renderer[] — the worker needs the full renderer * list for defines even when building a single main target. `hotRestart` is * moot here: workers only run when packaging. */ private get serializableConfig(); build: (task?: ForgeListrTask) => Promise; buildRenderer: (task?: ForgeListrTask) => Promise | undefined>; launchRendererDevServers: (task?: ForgeListrTask) => Promise | undefined>; exitHandler: (options: { cleanup?: boolean; exit?: boolean; }, err?: Error) => void; } export { VitePlugin, VitePluginConfig }; export type { VitePluginBuildConfig, VitePluginRendererConfig, } from './Config.ts'; //# sourceMappingURL=VitePlugin.d.ts.map