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

Function writeUnseenMessage

ark/aot/scan.ts:779–783  ·  view source on GitHub ↗
(
	reason: string,
	fix = "Set prune: false to build them whole"
)

Source from the content-addressed store, hash-verified

777 `${entry} exports ${helper}, a helper the build precompiles at each call, but it's an entry, so code outside the bundle may call ${helper}, which would throw at runtime. Export what ${helper} returns instead.`
778
779export const writeUnseenMessage = (
780 reason: string,
781 fix = "Set prune: false to build them whole"
782): string =>
783 `A production build leaves out of its validators what no read of them needs, as it found reading the bundle's modules, but ${reason}, so a read it didn't see may need what it left out. ${fix}.`
784
785export const writeUnscannedFlatMessage = (path: string): string =>
786 `A production build declares the units its validators read in one function, as it found reading the bundle's modules first, but it built ${path} from code it didn't read, whose validators would read copies of them. Build again, or set prune: false to build each unit as a module of its own.`

Callers 5

keepCompilerFunction · 0.90
builtFunction · 0.90
unseenInMethod · 0.90
prune.test.tsFile · 0.90
unseenProblemOfFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected