UNPKG

dumi

Version:

📖 Documentation Generator of React Component

11 lines (10 loc) • 615 B
import type { PluginItem } from '@umijs/bundler-utils/compiled/@babel/core'; import { IApi } from 'umi'; export declare const shouldDisabledLiveDemo: (api: IApi) => boolean; /** * pick babel plugins which should be applied to code-block demos from `extraBabelPlugins` * @param extraBabelPlugins `extraBabelPlugins` config of umi * @param cwd project root, used to resolve plugin package * @returns resolved plugin items, always JSON-serializable (loader options of utoopack require it) */ export declare function getCodeBlockBabelPlugins(extraBabelPlugins: unknown, cwd: string): PluginItem[];