12 lines
376 B
TypeScript
12 lines
376 B
TypeScript
|
// This class creates a simplified webpack error that formats nicely based on
|
||
|
// webpack's build in serializer.
|
||
|
// https://github.com/webpack/webpack/blob/c9d4ff7b054fc581c96ce0e53432d44f9dd8ca72/lib/Stats.js#L294-L356
|
||
|
export class SimpleWebpackError extends Error {
|
||
|
file: string
|
||
|
|
||
|
constructor(file: string, message: string) {
|
||
|
super(message)
|
||
|
this.file = file
|
||
|
}
|
||
|
}
|