UNPKG

histoire

Version:

A fast story book powered by Vite

17 lines • 923 B
import type { Plugin, ViteDevServer } from 'vite'; /** * Makes the collection server's watcher ignore every path, so it never crawls * the project. `server.watch: null` would also skip the crawl, but Vite then * disables its resolver cache, which slows every collection transform. */ export declare function collectionWatchPlugin(): Plugin; /** * Replays the client server's file events on the collection server's watcher, * in chokidar's order (named event, then `all`). Both servers watch the same * project with the same options, so Vite and plugins on the collection server * see the events their own crawl would have produced. * @param client Server whose watcher crawls the project. * @param collection Server using {@link collectionWatchPlugin}. */ export declare function forwardWatcherEvents(client: ViteDevServer, collection: ViteDevServer): () => void; //# sourceMappingURL=collection-watcher.d.ts.map