UNPKG

storybook

Version:

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

21 lines (16 loc) 829 B
import CJS_COMPAT_NODE_URL_3za304dh1il from 'node:url'; import CJS_COMPAT_NODE_PATH_3za304dh1il from 'node:path'; import CJS_COMPAT_NODE_MODULE_3za304dh1il from "node:module"; var __filename = CJS_COMPAT_NODE_URL_3za304dh1il.fileURLToPath(import.meta.url); var __dirname = CJS_COMPAT_NODE_PATH_3za304dh1il.dirname(__filename); var require = CJS_COMPAT_NODE_MODULE_3za304dh1il.createRequire(import.meta.url); // ------------------------------------------------------------ // end of CJS compatibility banner, injected by Storybook's esbuild configuration // ------------------------------------------------------------ // src/cli/ai/utils/type-import-source.ts function getTypeImportSource(projectInfo) { return projectInfo.framework || projectInfo.rendererPackage || "@storybook/react"; } export { getTypeImportSource };