UNPKG

beesbuild

Version:

构建工具链

13 lines (12 loc) 710 B
import type { Alias } from '@rollup/plugin-alias'; import type { RollupOutputKey } from '@beesbuild/utils'; import type { BuildContext } from './types'; /** used for type generator */ export declare function pathRewriter(ctx: BuildContext, module: RollupOutputKey): (id: string) => string; export declare function arrayIncludes(arr: (string | RegExp)[], searchElement: string): boolean; export declare function getpkg(id?: string): string; export declare function resolveAliases(ctx: BuildContext, flag?: true): { [find: string]: string; }; export declare function resolveAliases(ctx: BuildContext, flag: false): Alias[]; export declare const hasDefaultExport: (resolvedEntry: string) => Promise<boolean>;