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

Function writeLargerMessage

ark/aot/scan.ts:733–734  ·  view source on GitHub ↗
(times: number)

Source from the content-addressed store, hash-verified

731
732// times is how many times arktype's size the build's validators are
733export const writeLargerMessage = (times: number): string =>
734 `precompile: this build's validators, each compiled to check fastest, are about ${times.toFixed(1)} times the size of arktype, which they replace, so the bundle is larger than one creating its Types as it runs. Set preset: "smallest" to write them as calls to checkers they share, or optimize: "speed" to build without this warning.`
735
736// where the build wrote them for size itself, as a browser loads the bundle
737export const writeChoseSizeMessage = (times: number): string =>

Callers 2

scanChoosingFunction · 0.90
readAndWriteFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected