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

Function requestResolving

ark/aot/unplugin.ts:180–191  ·  view source on GitHub ↗
(
		resolve: BundlerResolve | undefined,
		...message: PrecompileRequest
	)

Source from the content-addressed store, hash-verified

178 let precompiler = Promise.resolve(create())
179 // what the precompiler can't resolve while it answers, the bundler may
180 const requestResolving = (
181 resolve: BundlerResolve | undefined,
182 ...message: PrecompileRequest
183 ) =>
184 precompiler
185 .then(send =>
186 // a dev server starts once, so it fails each request instead
187 changedSettings && isServing ?
188 throwBuildError(changedSettings)
189 : send(message, resolve)
190 )
191 .catch(rethrowAsBuildError)
192 const request = (...message: PrecompileRequest) =>
193 requestResolving(undefined, ...message)
194 // a production bundle's scan. With nothing set for what its validators

Callers 6

requestFunction · 0.85
scanChoosingFunction · 0.85
answerBuiltFunction · 0.85
transformFunction · 0.85
handlerFunction · 0.85
buildEndFunction · 0.85

Calls 2

throwBuildErrorFunction · 0.90
sendFunction · 0.85

Tested by

no test coverage detected