UNPKG

histoire

Version:

A fast story book powered by Vite

17 lines • 804 B
/** Reads the version of the same Vitest install used for browser resolution. */ export declare function getVitestMajor(root: string): number; /** * Resolves a module through the project's Vitest install, so a single copy of * Vitest and its internals is used everywhere. * @param root The project root. * @param id The module id to resolve. */ export declare function resolveVitestModule(root: string, id: string): string; /** * Same as {@link resolveVitestModule}, returning `null` instead of throwing for * an optional module (a project without Vitest, or without that Vitest entry). * @param root The project root. * @param id The module id to resolve. */ export declare function tryResolveVitestModule(root: string, id: string): string; //# sourceMappingURL=resolve-vitest-package.d.ts.map