vike
Version:
(Replaces Next.js/Nuxt) 🔨 Composable framework to build advanced applications with flexibility and stability.
18 lines (17 loc) • 739 B
TypeScript
export { getPrettyErrorWithCodeSnippet };
export { isErrorWithCodeSnippet };
export { isEquivalentErrorWithCodeSnippet };
export type { ErrorWithCodeSnippet };
export { getPrettyErrMessage };
import '../../assertEnvVite.js';
type ErrorWithCodeSnippet = {
id: string;
frame?: string;
message?: string;
plugin?: string;
};
declare function isErrorWithCodeSnippet(err: unknown): err is ErrorWithCodeSnippet;
declare function getPrettyErrorWithCodeSnippet(err: ErrorWithCodeSnippet, userRootDir: string): `Failed to transpile ${string} because:
${string}`;
declare function getPrettyErrMessage(err: ErrorWithCodeSnippet): string | null;
declare function isEquivalentErrorWithCodeSnippet(err1: unknown, err2: unknown): boolean;