Skip to content

Commit

Permalink
fix: update file paths to use forward slashes for Windows compat
Browse files Browse the repository at this point in the history
  • Loading branch information
codepunkt authored Nov 7, 2024
2 parents da21e66 + c9f50a7 commit 76829b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ export function createRollupLicensePlugin(
Boolean(path.match(/node_modules/)) && module.renderedLength > 0
)
.map(([path]) =>
path.startsWith('\0') ? path.replace(/^\0/, '') : path
(path.startsWith("\0") ? path.replace(/^\0/, "") : path).replace(/\\/g, '/')
)
.map((path) => [path, path.split('node_modules').pop()])
.map(([path, filePath]) => {
Expand Down

0 comments on commit 76829b8

Please sign in to comment.