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

Function resolvedOptionsOf

ark/aot/nextProgram.ts:646–658  ·  view source on GitHub ↗
(
	set: PrecompilePluginOptions,
	production: boolean
)

Source from the content-addressed store, hash-verified

644
645// with ark.json's, where prune: true would be ignored
646export const resolvedOptionsOf = (
647 set: PrecompilePluginOptions,
648 production: boolean
649): PrecompilePluginOptions => {
650 refuseArktypeDependencies(set, "Turbopack")
651 return resolvePrecompileOptions(
652 withEnvironment(
653 // Next loads a route's modules at its first request, none written as one
654 production ? { defers: "large", ...set } : set,
655 { production, testing: false }
656 )
657 )
658}
659
660export const readsWith = (opts: PrecompilePluginOptions): boolean =>
661 opts.prune !== false && opts.runtime !== "arktype" && !opts.shadow

Callers 2

turbopack.tsFile · 0.90
readProjectWithFunction · 0.85

Calls 3

resolvePrecompileOptionsFunction · 0.90
withEnvironmentFunction · 0.90

Tested by

no test coverage detected