Skip to content
This repository has been archived by the owner on Jun 24, 2024. It is now read-only.

Commit

Permalink
fix: prepend ./ to paths to ensure validity
Browse files Browse the repository at this point in the history
  • Loading branch information
digitalsadhu committed Jan 31, 2018
1 parent a000903 commit a0f7509
Show file tree
Hide file tree
Showing 3 changed files with 74 additions and 74 deletions.
2 changes: 1 addition & 1 deletion lib/replace-dependencies.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ module.exports = function replaceDependencies(depMap, item) {
const path = dirname(dependencyFile);
const filename = basename(dependencyFile);
const relativePath = relative(dirname(file), path);
const relativeDependency = join(relativePath, filename);
const relativeDependency = `./${join(relativePath, filename)}`;

source = source.replace(
new RegExp(
Expand Down
Loading

0 comments on commit a0f7509

Please sign in to comment.