diff --git a/lib/bundle.js b/lib/bundle.js index 457e468..63f88e8 100644 --- a/lib/bundle.js +++ b/lib/bundle.js @@ -47,6 +47,9 @@ function comparePaths(path1, path2) { * @returns {object} - Detect root files result object */ function calculatePath(parentFileName, referencePath) { + if (path.isAbsolute(referencePath)) { + return referencePath; + } if (referencePath[0] === localPointer) { return `${parentFileName}${referencePath}`; }