Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Resolves transformerPath before attempting to read contents. (#268)
Summary: <!-- Thanks for submitting a pull request! Please provide enough information so that others can review your pull request. The two fields below are mandatory. --> **Summary** Configuration paths are now supposed to be relative to allow them to be shared on different paths/machines. This change makes sure that the new relative transformerPath is require.resolved before being passed to fs.readFileSync. <!-- Explain the **motivation** for making this change. What existing problem does the pull request solve? --> **Test plan** I edited node_modules directly in metro-sample-app to ensure that the fix got me passed the unable to resolve error. <!-- Demonstrate the code is solid. Example: The exact commands you ran and their output, screenshots / videos if the pull request changes UI. --> Pull Request resolved: #268 Differential Revision: D10062783 Pulled By: rafeca fbshipit-source-id: 3f4e97adf1153987c609d97e951cf3d16ea18fda
- Loading branch information