deleterequire.cache[filePath];// Delete module from cache
constparent=require.cache[parentPath];// If `filePath` and `parentPath` are the same, cache will already be deleted so we won't get a memory leak in next step
returnparent===undefined?require(filePath):parent.require(filePath);// In case cache doesn't have parent, fall back to normal require