Skip to content
This repository has been archived by the owner on Jul 27, 2020. It is now read-only.

Commit

Permalink
Fix windows paths when ejecting/building yoga
Browse files Browse the repository at this point in the history
  • Loading branch information
Weakky committed Apr 26, 2019
1 parent ee08bb1 commit 5db62c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/yoga/src/cli/commands/build/renderers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ function renderPathJoin(sourceDir: string, targetPath: string) {
relativePath = './' + relativePath
}

return `path.join(__dirname, '${relativePath}')`
return `path.join(__dirname, '${relativePath.replace(/\\/g, '/')}')`
}

export function renderResolversIndex(info: ConfigWithInfo) {
Expand Down

0 comments on commit 5db62c4

Please sign in to comment.