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

Function untransformedProblemOf

ark/aot/unplugin.ts:724–747  ·  view source on GitHub ↗
(
		id: string,
		importer: string,
		// esbuild's, whose other namespaces hold modules with no file
		namespace = "file"
	)

Source from the content-addressed store, hash-verified

722 const loadedFiles = new Set<string>()
723 // e.g. a Svelte component's script, whose Types the build never sees
724 const untransformedProblemOf = (
725 id: string,
726 importer: string,
727 // esbuild's, whose other namespaces hold modules with no file
728 namespace = "file"
729 ) => {
730 const file = importer.split("?")[0]
731 if (!resolvesToRuntime(id, opts) || reportedUntransformed.has(file)) return
732 const cwd = realCwd()
733 const problem =
734 namespace !== "file" || !isAbsolute(file) ?
735 writeFilelessImportMessage(importer, id)
736 : dependencyOf(file) ? undefined
737 : (
738 !transformedFilter.include.test(importer) &&
739 !transformedFilter.include.test(file)
740 ) ?
741 writeUntransformedImportMessage(file, id, cwd)
742 : meta.framework === "esbuild" && !loadedFiles.has(file) ?
743 writeLoadedFirstMessage(file, id, cwd)
744 : undefined
745 if (problem) reportedUntransformed.add(file)
746 return problem
747 }
748 const foldedHelpersById = new Map<string, string[]>()
749 // what a webpack or Rspack compilation read of the modules it built, which
750 // its loaders run again to write

Callers 3

stdinProblemOfFunction · 0.70
resolveEsbuildRuntimeFunction · 0.70
handlerFunction · 0.70

Calls 6

resolvesToRuntimeFunction · 0.90
dependencyOfFunction · 0.90
realCwdFunction · 0.85
testMethod · 0.80
hasMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected