HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/SBogers10/firetech.komma.pro/node_modules/babel-loader/lib/utils/relative.js
"use strict";

var path = require("path");

module.exports = function relative(sourceRoot, filename) {
  var rootPath = sourceRoot.replace(/\\/g, "/").split("/")[1];
  var fileRootPath = filename.replace(/\\/g, "/").split("/")[1];

  // If the file is in a completely different root folder use the absolute path of file.
  if (rootPath && rootPath !== fileRootPath) {
    return filename;
  }

  return path.relative(sourceRoot, filename);
};