UNPKG

@storybook/html

Version:

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

24 lines (20 loc) 1.08 kB
import CJS_COMPAT_NODE_URL_9w5nqbbxsm from 'node:url'; import CJS_COMPAT_NODE_PATH_9w5nqbbxsm from 'node:path'; import CJS_COMPAT_NODE_MODULE_9w5nqbbxsm from "node:module"; var __filename = CJS_COMPAT_NODE_URL_9w5nqbbxsm.fileURLToPath(import.meta.url); var __dirname = CJS_COMPAT_NODE_PATH_9w5nqbbxsm.dirname(__filename); var require = CJS_COMPAT_NODE_MODULE_9w5nqbbxsm.createRequire(import.meta.url); // ------------------------------------------------------------ // end of CJS compatibility banner, injected by Storybook's esbuild configuration // ------------------------------------------------------------ // src/preset.ts import { fileURLToPath } from "node:url"; var previewAnnotations = async (input = [], options) => { let docsEnabled = Object.keys(await options.presets.apply("docs", {}, options)).length > 0; return [].concat(input).concat([fileURLToPath(import.meta.resolve("@storybook/html/entry-preview"))]).concat( docsEnabled ? [fileURLToPath(import.meta.resolve("@storybook/html/entry-preview-docs"))] : [] ); }; export { previewAnnotations };