MCPcopy
hub / github.com/vercel/next.js / callback

Function callback

test/unit/next-babel-loader-dev.test.ts:27–33  ·  view source on GitHub ↗
(err, content)

Source from the content-addressed store, hash-verified

25 }
26 return new Promise<string>((resolve, reject) => {
27 function callback(err, content) {
28 if (err) {
29 reject(err)
30 } else {
31 resolve(content.replace(/\n/g, ''))
32 }
33 }
34
35 const res = loader.bind({
36 resourcePath,

Callers 15

transformFunction · 0.50
loadFunction · 0.50
loadFunction · 0.50
triggerUpdateFunction · 0.50
runWithFiberInDEVFunction · 0.50
startTransitionFunction · 0.50
listenerFunction · 0.50
writeFunction · 0.50
writeFunction · 0.50
writeFunction · 0.50
writeFunction · 0.50

Calls 3

replaceMethod · 0.65
rejectFunction · 0.50
resolveFunction · 0.50

Tested by

no test coverage detected