Skip to content

Commit

Permalink
fix: Use POSIX paths when inserting import statements (#795)
Browse files Browse the repository at this point in the history
  • Loading branch information
nmn authored Dec 4, 2024
1 parent 30b5300 commit 89d91e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cli/src/files.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export function isJSFile(filePath: string): boolean {

// e.g. ./pages/home/index.js -> ../../stylex_bundle.css
export function getRelativePath(from: string, to: string): string {
const relativePath = path.relative(path.parse(from).dir, to);
const relativePath = path.posix.relative(path.parse(from).dir, to);
return formatRelativePath(relativePath);
}

Expand Down

0 comments on commit 89d91e4

Please sign in to comment.