Skip to content

Commit

Permalink
fix: normalize relative path
Browse files Browse the repository at this point in the history
  • Loading branch information
gjbkz committed May 5, 2022
1 parent 5ba60c0 commit b1de572
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/esmify.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ const getRelativeImportSourceValue = (
if (!relativePath.startsWith('.')) {
relativePath = `./${relativePath}`;
}
return relativePath;
return relativePath.split(path.sep).join('/');
};

const replaceCode = (
Expand Down

0 comments on commit b1de572

Please sign in to comment.