MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / tryResolveClient

Function tryResolveClient

packages/core/vite-plugin/src/index.ts:59–66  ·  view source on GitHub ↗
(packageName: string, fromDir: string)

Source from the content-addressed store, hash-verified

57};
58
59const tryResolveClient = (packageName: string, fromDir: string): string | null => {
60 const require = createRequire(resolvePath(fromDir, "_anchor.js"));
61 try {
62 return require.resolve(`${packageName}/client`);
63 } catch {
64 return null;
65 }
66};
67
68interface ExecutorVitePluginOptions {
69 /**

Callers 1

loadVirtualSourceFunction · 0.85

Calls 1

resolveMethod · 0.80

Tested by

no test coverage detected