UNPKG

@storybook/html

Version:

Storybook HTML renderer: Develop, document, and test UI components in isolation

27 lines (23 loc) 1.28 kB
import CJS_COMPAT_NODE_URL_sljqogk9sz from 'node:url'; import CJS_COMPAT_NODE_PATH_sljqogk9sz from 'node:path'; import CJS_COMPAT_NODE_MODULE_sljqogk9sz from "node:module"; var __filename = CJS_COMPAT_NODE_URL_sljqogk9sz.fileURLToPath(import.meta.url); var __dirname = CJS_COMPAT_NODE_PATH_sljqogk9sz.dirname(__filename); var require = CJS_COMPAT_NODE_MODULE_sljqogk9sz.createRequire(import.meta.url); // ------------------------------------------------------------ // end of CJS compatibility banner, injected by Storybook's esbuild configuration // ------------------------------------------------------------ var __defProp = Object.defineProperty; var __name = (target, value) => __defProp(target, "name", { value, configurable: true }); // src/preset.ts import { fileURLToPath } from "node:url"; var previewAnnotations = /* @__PURE__ */ __name(async (input = [], options) => { const docsEnabled = Object.keys(await options.presets.apply("docs", {}, options)).length > 0; const result = []; return result.concat(input).concat([fileURLToPath(import.meta.resolve("@storybook/html/entry-preview"))]).concat( docsEnabled ? [fileURLToPath(import.meta.resolve("@storybook/html/entry-preview-docs"))] : [] ); }, "previewAnnotations"); export { previewAnnotations };