in src/utils/UserFunction.ts [95:111]
function _loadUserApp(
appRoot: string,
moduleRoot: string,
module: string
): any {
try {
return _tryRequire(appRoot, moduleRoot, module);
} catch (e) {
if (e instanceof SyntaxError) {
throw new UserCodeSyntaxError(<any>e);
} else if (e.code !== undefined && e.code === "MODULE_NOT_FOUND") {
throw new ImportModuleError(e);
} else {
throw e;
}
}
}