UNPKG

@ima/dev-utils

Version:

IMA.js dev utils used used mainly in @ima/cli and other dev-related utilities.

14 lines (13 loc) 609 B
import { StatsError } from 'webpack'; import { CompileError } from './parsers'; export declare const COMPILE_ERROR_NEEDLES_RE: RegExp[]; export declare function resolveErrorType(error: Error | StatsError): 'compile' | 'runtime'; /** * Tries to parse error location from an error. Which can be * either webpack stats error or simple Error object. * * @param {StatsError | Error} error webpack stats object or error instance. * @returns {CompileError | null} Parsed compile error. */ export declare function parseCompileError(error: StatsError | Error): CompileError | null; export { type CompileError };