From e2ed7f09f39af6c359a14f2996fd07be9697762d Mon Sep 17 00:00:00 2001 From: Luis Tejeda <46000487+LuisTejedaS@users.noreply.github.com> Date: Mon, 30 May 2022 13:13:52 -0500 Subject: [PATCH] Update bundle.js When absolute path do not calculate path with join --- lib/bundle.js | 3 +++ 1 file changed, 3 insertions(+) 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}`; }