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

Fix haste_name_reducers on Windows #7419

Closed
wants to merge 1 commit into from
Closed

Fix haste_name_reducers on Windows #7419

wants to merge 1 commit into from

Conversation

jamesisaac
Copy link
Contributor

Adds Windows support for the module.system.haste.name_reducers option in .flowconfig, used by projects including React Native.

The file paths weren't being normalized for Windows in is_haste_file and haste_name (converting \ to /), so the regex was always failing.

Fixes #7138

Adds Windows support for the `module.system.haste.name_reducers` option in .flowconfig, used by projects including React Native.

The file paths weren't being normalized for Windows in `is_haste_file` and `haste_name` (converting `\` to `/`), so the regex was always failing.

Fixes #7138
@TheSavior
Copy link
Member

Thanks for working on this functionality! Getting Flow running for React Native in windows is a huge accomplishment. This seems like something that can be tested with one of the e2e tests in the Flow repo that is run on Windows. Could you add a test?

Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

@avikchaudhuri has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

gabelevi pushed a commit that referenced this pull request Feb 4, 2019
Summary:
Adds Windows support for the `module.system.haste.name_reducers` option in .flowconfig, used by projects including React Native.

The file paths weren't being normalized for Windows in `is_haste_file` and `haste_name` (converting `\` to `/`), so the regex was always failing.

Fixes #7138
Pull Request resolved: #7419

Reviewed By: mroch

Differential Revision: D13900899

Pulled By: avikchaudhuri

fbshipit-source-id: c6613c862aaaafa1342dd7199b436446e99b8fd8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Cannot resolve module on windows
4 participants