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

Function writeLaterTransformMessage

ark/aot/unplugin.ts:664–684  ·  view source on GitHub ↗
({
		id,
		read,
		commonJs,
		members
	}: UnseenLater)

Source from the content-addressed store, hash-verified

662 // a read a transform after this one's adds, or a module one built so that
663 // none can be told
664 const writeLaterTransformMessage = ({
665 id,
666 read,
667 commonJs,
668 members
669 }: UnseenLater) => {
670 const module = id && printablePathOf(realCwd(), id)
671 const call = `precompile.${meta.framework}()`
672 const ahead =
673 meta.framework === "vite" ?
674 (it: string) =>
675 `Give ${it} enforce: "pre" and list ${it} ahead of ${call}`
676 : (it: string) => `List ${it} ahead of ${call}`
677 return (
678 read === undefined ?
679 writeLaterTransformRewroteMessage(module!, transformersAfter, ahead)
680 : commonJs && module ?
681 writeLaterTransformCommonJsMessage(module, transformersAfter)
682 : writeLaterTransformReadMessage(module, read, transformersAfter, members)
683 )
684 }
685 const namingTransformers = (
686 diagnostics: RenderedDiagnostics
687 ): RenderedDiagnostics =>

Callers 1

buildEndFunction · 0.85

Calls 2

printablePathOfFunction · 0.90
realCwdFunction · 0.85

Tested by

no test coverage detected