UNPKG

@rspack/core

Version:

The fast Rust-based web bundler with webpack-compatible API

24 lines (23 loc) 680 B
/** * The following code is modified based on * https://github.com/webpack/webpack/blob/4b4ca3b/lib/WebpackError.js * * MIT Licensed * Author Tobias Koppers @sokra * Copyright (c) JS Foundation and other contributors * https://github.com/webpack/webpack/blob/main/LICENSE */ import { inspect } from "node:util"; import type { Chunk } from "../Chunk"; import type { Module } from "../Module"; type DependencyLocation = any; export declare class WebpackError extends Error { loc?: DependencyLocation; file?: string; chunk?: Chunk; module?: Module; details?: string; hideStack?: boolean; [inspect.custom](): string; } export default WebpackError;