MCPcopy Index your code
hub / github.com/getsentry/sentry-javascript / createResolver

Function createResolver

packages/nitro/src/utils/resolver.ts:16–25  ·  view source on GitHub ↗
(base: string)

Source from the content-addressed store, hash-verified

14 * ```
15 */
16export function createResolver(base: string): Resolver {
17 let resolvedBase = base;
18 if (base.startsWith('file://')) {
19 resolvedBase = dirname(fileURLToPath(base));
20 }
21
22 return {
23 resolve: (...path) => resolve(resolvedBase, ...path),
24 };
25}

Callers 10

instrumentServerFunction · 0.90
setupFunction · 0.85
addMiddlewareImportsFunction · 0.85
addSentryTopImportFunction · 0.85
buildStartFunction · 0.85
resolveIdFunction · 0.85
setupFunction · 0.85

Calls 2

dirnameFunction · 0.85
resolveFunction · 0.50

Tested by

no test coverage detected