histoire
Version:
A fast story book powered by Vite
15 lines • 786 B
TypeScript
import type { Plugin as VitePlugin } from 'vite';
import type { Context } from '../context.js';
import type { BrowserRuntimePaths } from './resolve-paths.js';
/** Owned shim identity is also trusted by non-executing dependency analysis. */
export declare const STORY_VITEST_SHIM_ID = "\0virtual:$histoire-story-vitest";
/**
* Serves the browser-compatible `vitest` shim to story files.
*
* Components, setup modules and imported helpers can also register story
* tests. Vitest's own browser runtime retains its real exports.
* @param ctx The histoire context.
* @param paths Project module paths the shim re-exports from.
*/
export declare function createStoryVitestShimPlugin(ctx: Context, paths: BrowserRuntimePaths): VitePlugin;
//# sourceMappingURL=story-vitest-shim.d.ts.map