async function resolvePathFile(path, relativePath) {
    let solvedPath = path;
    if (path && path.includes('./')) {
        if (path.includes('../')) {
            let foldersToBack = path.split('../').length - 1;
            let RelativePathBacked = relativePath.split('/');
            RelativePathBacked = RelativePathBacked.slice(0, -1 * foldersToBack);
            RelativePathBacked = RelativePathBacked.join('/');

            solvedPath = RelativePathBacked + '/' + path.replaceAll("'", '').replaceAll('"', '').replaceAll('`', '').replaceAll(' ', '').replaceAll('\n', '').replaceAll('../', '');
            solvedPath = solvedPath.replaceAll('//', '/').replaceAll('//', '/');
            solvedPath = solvedPath.replaceAll('\\\\', '\\').replaceAll('\\\\', '\\');
            if ((await utils.getExtension(solvedPath)) === '' && (await utils.getExtension('.' + solvedPath)) != '') {
                solvedPath = '.' + solvedPath;
            }
        } else {
            solvedPath = relativePath + path.replaceAll("'", '').replaceAll('"', '').replaceAll('`', '').replaceAll(' ', '').replaceAll('\n', '').replaceAll('./', '/');
            solvedPath = solvedPath.replaceAll('//', '/').replaceAll('//', '/');
            solvedPath = solvedPath.replaceAll('\\\\', '\\').replaceAll('\\\\', '\\');
            if ((await utils.getExtension(solvedPath)) === '' && (await utils.getExtension('.' + solvedPath)) != '') {
                solvedPath = '.' + solvedPath;
            }
        }
    }
    return solvedPath.replaceAll(')', '');
}
CASE: Referenced function, such as: module.exports = { foo: require('./fooFile').foo } in index file
Issue: #29