Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Start looking for codegen-enabled dependencies from the project root
Summary: When running codegen from `pod install`, something affects `require.resolve`, and it starts looking for codegen-enabled dependencies from the workspace root, not the current RN project root. This is bad if we have different versions of same dependency across multiple workspaces. One of them will be hoisted to the workspace root, and will be used for all the workspaces. This issue is described in details here facebook#46196 This diff is supposed to fix this by adding the project root path to the `require.resolve` call. Changelog: [iOS][Fixed] - Codegen will start looking for codegen-enabled dependencies from the project root. Differential Revision: D61850219
- Loading branch information