@antdevx/vite-plugin-hmr-sync
Version:
A Vite plugin for synchronizing HMR across multiple workspaces in a monorepo setup.
16 lines • 617 B
TypeScript
import { default as http } from 'node:http';
import { ViteDevServer } from 'vite';
import { IListenOptions } from '../interface/listen.interface';
/**
* Handles incoming requests to trigger a rebuild in the Vite server.
*
* @export
* @param {ViteDevServer} server
* @param {*} req
* @param {*} res
* @param {IListenOptions} options
* @param {string} pluginName
* @return {*} {void}
*/
export declare function handleRemoteRebuildRequest(server: ViteDevServer, req: http.IncomingMessage, res: http.ServerResponse, options: IListenOptions, pluginName: string): void;
//# sourceMappingURL=host-handler.d.ts.map