diff --git a/src/minipack.js b/src/minipack.js index ceecb73..dbef421 100644 --- a/src/minipack.js +++ b/src/minipack.js @@ -131,7 +131,7 @@ function createGraph(entry) { // relative to the file that imported them. We can turn the relative path // into an absolute one by joining it with the path to the directory of // the parent asset. - const absolutePath = path.join(dirname, relativePath); + const absolutePath = path.resolve(dirname, relativePath); // Parse the asset, read its content, and extract its dependencies. const child = createAsset(absolutePath);