MCPcopy Create free account
hub / github.com/arktypeio/arktype / rethrowAsBuildError

Function rethrowAsBuildError

ark/aot/host.ts:570–573  ·  view source on GitHub ↗
(e: unknown)

Source from the content-addressed store, hash-verified

568
569// a bundler prints an error's stack, which would show the precompiler's frames
570export const rethrowAsBuildError = (e: unknown): never => {
571 if (isBuildError(e)) e.stack = ""
572 throw e
573}
574
575export const throwBuildError = (message: string): never =>
576 rethrowAsBuildError(new Error(message))

Callers 4

turbopack.tsFile · 0.90
answerAloneFunction · 0.90
resolvedAgainFunction · 0.90
throwBuildErrorFunction · 0.85

Calls 1

isBuildErrorFunction · 0.85

Tested by

no test coverage detected