histoire
Version:
A fast story book powered by Vite
11 lines (10 loc) • 474 B
JavaScript
import { generatePluginManifest } from './resolved-workbench-plugins.js';
/**
* Generates `virtual:$histoire-frame-plugins`: lazy loaders of `workbench.frame` entries,
* same shape and order as the workbench manifest.
* @param ctx Histoire context holding resolved plugins.
* @param command Resolved Vite command.
*/
export function resolvedFramePlugins(ctx, command) {
return generatePluginManifest(ctx.workbenchPlugins ?? [], 'frame', 'framePlugins', command);
}