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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(resolve): hands over preserveSymlink processing to EHR #865

Merged
merged 2 commits into from
Nov 12, 2023

Conversation

sverweij
Copy link
Owner

@sverweij sverweij commented Nov 12, 2023

Description

  • removes most preserveSymlink processing in favor of passing the preserveSymlink option to enhanced-resolve (which does this out of the box).
  • unwraps the swallow-tail in the resolve index & refactors the yarn/ berry resolveVirtual things
  • It's now properly reflected EHR's symlinks === !preserveSymlink

Motivation and Context

  • Simplifies our code
  • By moving it to enhanced-resolve the properly resolved module name is available earlier in the process. This will make our live easier when we'd ever want to use that e.g. for workspaces (which are nothing but symlinks from node_modules to local folders).

How Has This Been Tested?

  • green ci
  • adapted automatic non-regression test

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • Documentation only change
  • Refactor (non-breaking change which fixes an issue without changing functionality)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • 馃摉

    • My change doesn't require a documentation update, or ...
    • it does and I have updated it
  • 鈿栵笍

    • The contribution will be subject to The MIT license, and I'm OK with that.
    • The contribution is my own original work.
    • I am ok with the stuff in CONTRIBUTING.md.

Copy link

codeclimate bot commented Nov 12, 2023

Code Climate has analyzed commit 0de3b70 and detected 0 issues on this pull request.

View more on Code Climate.

@sverweij sverweij merged commit ae9b688 into main Nov 12, 2023
8 checks passed
@sverweij sverweij deleted the refactor/simplifies-symlink-processing branch November 12, 2023 13:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant