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

Function writeEntryHelperMessage

ark/aot/scan.ts:773–777  ·  view source on GitHub ↗
(
	entry: string,
	helper: string
)

Source from the content-addressed store, hash-verified

771 `${exporter} exports ${helper}, a helper the build precompiles at each call, but ${importer} imports it and isn't a module the plugin transforms, so a call to ${helper} there would throw at runtime. Call ${helper} in a module the plugin transforms, like a .ts file, and import what it returns, or move ${helper} to a module ${importer} doesn't import.`
772
773export const writeEntryHelperMessage = (
774 entry: string,
775 helper: string
776): string =>
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,

Callers 2

unplugin.test.tsFile · 0.90
unfoldedCallProblemOfFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected