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

Implement resolver.unstable_enableSymlinks #925

Closed
wants to merge 1 commit into from

Commits on Feb 15, 2023

  1. Resolve files to real paths when unstable_enableSymlinks (facebook#925

    )
    
    Summary:
    Pull Request resolved: facebook#925
    
    This makes a minimally invasive change to `metro-resolver` to run source file and asset resolutions through a new `getRealPath` method of `FileSystem`.
    
    Custom `resolveRequest` implementations are not affected - for the time being they're expected to take responsibility for returning real paths on their own, but they may now use `content.unstable_getRealPath` to do so.
    
    This is not intended as a final design, but the resolver changes will dovetail into planned DependencyGraph work where we'll need to track non-existent resolution candidates (by their "candidate path", but ultimately resolve to real paths).
    
    Changelog: [Experimental] Implement `resolver.unstable_enableSymlinks`
    
    Differential Revision: D42847996
    
    fbshipit-source-id: bf4cd09fcc619292558319e6c2abc2faa697a2a9
    robhogan authored and facebook-github-bot committed Feb 15, 2023
    Copy the full SHA
    f7c7102 View commit details
    Browse the repository at this point in the history