UNPKG

@storybook/svelte

Version:

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

24 lines (20 loc) 1.09 kB
import CJS_COMPAT_NODE_URL_1r8xujms3vr from 'node:url'; import CJS_COMPAT_NODE_PATH_1r8xujms3vr from 'node:path'; import CJS_COMPAT_NODE_MODULE_1r8xujms3vr from "node:module"; var __filename = CJS_COMPAT_NODE_URL_1r8xujms3vr.fileURLToPath(import.meta.url); var __dirname = CJS_COMPAT_NODE_PATH_1r8xujms3vr.dirname(__filename); var require = CJS_COMPAT_NODE_MODULE_1r8xujms3vr.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/svelte/entry-preview"))]).concat( docsEnabled ? [fileURLToPath(import.meta.resolve("@storybook/svelte/entry-preview-docs"))] : [] ); }; export { previewAnnotations };