MCPcopy Create free account
hub / github.com/webpack/webpack-cli / resolveSync

Function resolveSync

test/external-command/my-loader.mjs:34–40  ·  view source on GitHub ↗
(specifier, context, nextResolve)

Source from the content-addressed store, hash-verified

32
33// Synchronous hook, used with `module.registerHooks()`
34export function resolveSync(specifier, context, nextResolve) {
35 try {
36 return nextResolve(specifier, context);
37 } catch (err) {
38 return resolveFromCwd(specifier, err);
39 }
40}

Callers

nothing calls this directly

Calls 1

resolveFromCwdFunction · 0.85

Tested by

no test coverage detected