Skip to content

Commit

Permalink
Merge pull request #90 from mkholt/89_fix-wrong-global-style-path
Browse files Browse the repository at this point in the history
Replace path separators in relative path
  • Loading branch information
activeguild authored Jan 4, 2024
2 parents 0f6c626 + 7413667 commit 3eaa7be
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ export const getRelativePath = (
to: string | undefined
) => {
let relativePath = path.relative(from || '', to || '') || './'
if (path.sep !== "/") {
relativePath = relativePath.replaceAll(path.sep, "/")
}
relativePath = sameDirRE.test(relativePath)
? relativePath
: `./${relativePath}`
Expand Down

1 comment on commit 3eaa7be

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bundled size for the package is listed below:

dist: 42.97 KB

Please sign in to comment.