silverwolf-x's picture
download
raw
487 Bytes
import type { webpack } from 'next/dist/compiled/webpack/webpack'
// 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 as unknown as typeof webpack.WebpackError) {
file: string
constructor(file: string, message: string) {
super(message)
this.file = file
}
}

Xet Storage Details

Size:
487 Bytes
·
Xet hash:
ae5e7ed928d65d743a3e290b40465ddcb25901028a3ef074842f838729a1d4e0

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.