@farmfe/core
Version:
Farm is a extremely fast web build tool written in Rust. Farm can start a project in milliseconds and perform HMR within 10ms, making it much faster than similar tools like webpack and vite.
8 lines (7 loc) • 587 B
TypeScript
import { Config } from '../../types/binding.js';
import type { ResolvedCompilation, UserConfig } from '../types.js';
type PartialExternal = [string[], Record<string, string>];
export declare function partialExternal(externalConfig?: (string | Record<string, string>)[]): PartialExternal;
export declare function normalizeExternal(config: UserConfig, resolvedCompilation: ResolvedCompilation): void;
export declare function mergeCustomExternal<T extends Partial<Pick<Config['config'], 'custom'>>>(compilation: T, external: ReturnType<typeof partialExternal>): PartialExternal;
export {};