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

Function isStdinOf

ark/aot/unplugin.ts:2905–2913  ·  view source on GitHub ↗
(
	{ stdin }: EsbuildBuild["initialOptions"],
	args: { importer: string; namespace: string }
)

Source from the content-addressed store, hash-verified

2903
2904// esbuild names stdin as a file only where both resolveDir and sourcefile are set
2905const isStdinOf = (
2906 { stdin }: EsbuildBuild["initialOptions"],
2907 args: { importer: string; namespace: string }
2908): boolean =>
2909 stdin !== undefined &&
2910 (args.namespace === "" ||
2911 (stdin.resolveDir !== undefined &&
2912 stdin.sourcefile !== undefined &&
2913 args.importer === resolve(stdin.resolveDir, stdin.sourcefile)))
2914
2915// what a production bundle's validators are read for, if the scan changes what the plugin writes
2916const esbuildScanOf = async (

Callers 1

resolveEsbuildRuntimeFunction · 0.85

Calls 1

resolveFunction · 0.70

Tested by

no test coverage detected