MCPcopy Create free account
hub / github.com/dop251/goja_nodejs / WithLoader

Function WithLoader

require/module.go:80–84  ·  view source on GitHub ↗

WithLoader sets a function which will be called by the require() function in order to get a source code for a module at the given path. The same function will be used to get external source maps. Note, this only affects the modules loaded by the require() function. If you need to use it as a source

(srcLoader SourceLoader)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 7

NewRegistryWithLoaderFunction · 0.85
TestSourceLoaderFunction · 0.85
TestStrictModuleFunction · 0.85
TestResolveFunction · 0.85
TestRequireCycleFunction · 0.85
TestErrorPropagationFunction · 0.85
TestSourceMapLoaderFunction · 0.85

Calls

no outgoing calls

Tested by 6

TestSourceLoaderFunction · 0.68
TestStrictModuleFunction · 0.68
TestResolveFunction · 0.68
TestRequireCycleFunction · 0.68
TestErrorPropagationFunction · 0.68
TestSourceMapLoaderFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…