Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider files with same path but different directory separator equal #1459

Closed
pipe01 opened this issue Jul 18, 2021 · 0 comments · Fixed by #1472
Closed

Consider files with same path but different directory separator equal #1459

pipe01 opened this issue Jul 18, 2021 · 0 comments · Fixed by #1472

Comments

@pipe01
Copy link

pipe01 commented Jul 18, 2021

When importing two files e.g. src/index.ts and src\index.ts on a Windows system, both paths refer to the same file but are literally different, thus two different copies of the same file are emitted.

The easiest way to work around this is to wrap all returned paths from resolvers in a path.normalize() call.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant