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

Resolves transformerPath before attempting to read contents. #268

Closed
wants to merge 1 commit into from

Conversation

gdborton
Copy link
Contributor

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.

Test plan
I edited node_modules directly in metro-sample-app to ensure that the fix got
me passed the unable to resolve error.

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.
@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Sep 26, 2018
@codecov-io
Copy link

Codecov Report

Merging #268 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #268   +/-   ##
=======================================
  Coverage   85.68%   85.68%           
=======================================
  Files         144      144           
  Lines        4556     4556           
  Branches      712      712           
=======================================
  Hits         3904     3904           
  Misses        582      582           
  Partials       70       70
Impacted Files Coverage Δ
...c/DeltaBundler/Transformer/getTransformCacheKey.js 100% <ø> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 73dd5e8...ea6cb6f. Read the comment docs.

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.

rafeca is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@rafeca
Copy link
Contributor

rafeca commented Sep 26, 2018

Yay! thanks! 😃

@gdborton gdborton deleted the resolve-transformer-path branch September 27, 2018 18:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants