MCPcopy Create free account
hub / github.com/webpack/webpack-cli / isValidationError

Method isValidationError

packages/webpack-cli/src/webpack-cli.ts:1272–1274  ·  view source on GitHub ↗
(error: unknown)

Source from the content-addressed store, hash-verified

1270 }
1271
1272 isValidationError(error: unknown): error is WebpackError {
1273 return (error as Error).name === "ValidationError";
1274 }
1275
1276 // Cache the expensive schema-to-arguments walk per webpack module and schema, held via `WeakRef` so the GC can reclaim the ~1MB result after command setup (a miss simply rebuilds it).
1277 #argumentsCache = new WeakMap<

Callers 3

WebpackCLIClass · 0.95
loadConfigByPathMethod · 0.95
createCompilerMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected