@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.
24 lines (23 loc) • 696 B
TypeScript
import type { RollupError } from 'rollup';
export declare function prepareError(err: Error & {
potentialSolution?: string;
}): {
message: string;
stack: string;
id: string;
frame: string;
plugin: string;
pluginCode: string;
loc: {
column: number;
file?: string;
line: number;
};
potential: string;
};
export declare function stripAnsi(str: string): string;
export declare function cleanStack(stack: string): string;
export declare function buildErrorMessage(err: RollupError & {
source: string;
}, args?: string[], includeStack?: boolean): string;
export declare function logError(err: Error, throwErrorFlag?: boolean): string;