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

Function prunesIn

ark/aot/unplugin.ts:304–307  ·  view source on GitHub ↗
(production: boolean)

Source from the content-addressed store, hash-verified

302 let isStandalone = opts?.runtime !== "arktype"
303 // a production bundle, or any with prune: true, leaves out what no read of it needs
304 const prunesIn = (production: boolean) =>
305 isStandalone &&
306 !opts?.shadow &&
307 (opts?.prune === true || (production && opts?.prune !== false))
308 let variant = resolvedVariantOf(opts)
309 let packages = optedInPackagesOf(
310 opts?.cwd ?? process.cwd(),

Callers 4

keepCompilerFunction · 0.85
rollupBuildStartFunction · 0.85
unplugin.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected