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

Function noExternalOptionOf

ark/aot/unplugin.ts:3185–3190  ·  view source on GitHub ↗
(
	environment: ViteBuildContext["environment"]
)

Source from the content-addressed store, hash-verified

3183
3184// a Vite environment on a server leaves dependencies external unless told otherwise
3185const noExternalOptionOf = (
3186 environment: ViteBuildContext["environment"]
3187): string | undefined =>
3188 environment?.config.consumer !== "server" ? undefined
3189 : environment.name === "ssr" ? "ssr.noExternal"
3190 : `environments.${environment.name}.resolve.noExternal`
3191
3192// a tool may leave a dependency external by the file it resolves to
3193const externalPackageOf = (specifier: string): string =>

Callers 1

buildEndFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected