MCPcopy
hub / github.com/PlasmoHQ/plasmo / resolve

Function resolve

core/parcel-resolver/src/index.ts:12–24  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

10
11export default new Resolver({
12 async resolve(props) {
13 await initializeState(props)
14
15 return (
16 (await handleAlias(props)) ||
17 (await handlePlasmoInternal(props)) ||
18 (await handlePolyfill(props)) ||
19 (await handleRemoteCaching(props)) ||
20 (await handleTildeSrc(props)) ||
21 (await handleAbsoluteRoot(props)) ||
22 null
23 )
24 }
25})

Callers 15

initializeStateFunction · 0.70
resolveSourceIndexFunction · 0.70
handleRemoteCachingFunction · 0.70
handleAliasFunction · 0.70
handleTildeSrcFunction · 0.70
resolveByPrefixFunction · 0.70
handlePlasmoInternalFunction · 0.70
handleAbsoluteRootFunction · 0.70
handleSandboxesFunction · 0.50
handleLocalesFunction · 0.50
handleTabsFunction · 0.50
storeStateFunction · 0.50

Calls 7

initializeStateFunction · 0.90
handleAliasFunction · 0.90
handlePlasmoInternalFunction · 0.90
handlePolyfillFunction · 0.90
handleRemoteCachingFunction · 0.90
handleTildeSrcFunction · 0.90
handleAbsoluteRootFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…