MCPcopy Create free account
hub / github.com/Snapchat/Valdi / requireFunc

Function requireFunc

src/valdi_modules/src/valdi/valdi_core/src/Init.js:7–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5 module.exports = exports;
6
7 const requireFunc = path => {
8 if (path === 'tslib') {
9 return loadRootModule(jsEvaluator, `valdi_core/src/tslib`);
10 } else {
11 throw new Error(`Invalid root module ${path}`);
12 }
13 };
14
15 jsEvaluator(path, requireFunc, module, exports);
16

Callers

nothing calls this directly

Calls 1

loadRootModuleFunction · 0.85

Tested by

no test coverage detected