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

Function loader

packages/next/src/shared/lib/dynamic.tsx:125–128  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

123
124 const loaderFn = loadableOptions.loader as () => LoaderComponent<P>
125 const loader = () =>
126 loaderFn != null
127 ? loaderFn().then(convertModule)
128 : Promise.resolve(convertModule(() => null))
129
130 // coming from build/babel/plugins/react-loadable-plugin.js
131 if (loadableOptions.loadableGenerated) {

Callers 3

generateImgAttrsFunction · 0.70
getImgPropsFunction · 0.70
loadFunction · 0.70

Calls 3

thenMethod · 0.80
convertModuleFunction · 0.70
resolveMethod · 0.65

Tested by

no test coverage detected