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

Function resolve

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

Source from the content-addressed store, hash-verified

23
24// Asynchronous hook, used with `module.register()`
25export async function resolve(specifier, context, nextResolve) {
26 try {
27 return await nextResolve(specifier, context);
28 } catch (err) {
29 return resolveFromCwd(specifier, err);
30 }
31}
32
33// Synchronous hook, used with `module.registerHooks()`
34export function resolveSync(specifier, context, nextResolve) {

Callers 15

index.tsFile · 0.85
getDiffFunction · 0.85
installDependenciesFunction · 0.85
defaultInitGeneratorFunction · 0.85
vueInitGeneratorFunction · 0.85
svelteInitGeneratorFunction · 0.85
reactInitGeneratorFunction · 0.85
pluginGeneratorFunction · 0.85
loaderGeneratorFunction · 0.85
promptMethod · 0.85
runTestFunction · 0.85
runTestStdoutFunction · 0.85

Calls 1

resolveFromCwdFunction · 0.85

Tested by

no test coverage detected