histoire
Version:
A fast story book powered by Vite
14 lines • 681 B
TypeScript
/**
* Resolves the MSW service worker script, preferring the project's own `msw`
* package: the worker version must match the msw runtime modules (also
* resolved project-first), otherwise MSW logs "outdated worker" mismatch
* warnings in the built app.
* @param root The project root to resolve `msw` from first.
* @param options Resolution options.
* @param options.fallback Set to `false` to only accept the project's own install.
* @returns The worker file path, or `null` when no msw install is found.
*/
export declare function resolveMswWorkerPath(root: string, options?: {
fallback?: boolean;
}): string | null;
//# sourceMappingURL=resolve-msw-worker.d.ts.map