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

fix(rspack-resolver): enable pnp feature #7707

Merged
merged 1 commit into from
Aug 27, 2024
Merged

fix(rspack-resolver): enable pnp feature #7707

merged 1 commit into from
Aug 27, 2024

Conversation

fi3ework
Copy link
Member

Summary

This PR partially revert #7670.

This PR could fix https://github.com/fi3ework-reproduction/rspack-resolver-nested-tsconfig-extends.

In the past, pnp was enabled by default, so many resolve logics followed the pnp logic, but when pnp was disabled, this logic changed. The known problem is that when resolving the following path dependency: symbol_link_A -> symbol_link_B -> real_path_C, the relative path of symbol_link_B relative to real_path_C is obtained, which will lead to the wrong result for the real path (https://github.com/web-infra-dev/rspack-resolver/blob/main/src/file_system.rs#L164-L192).

We enable the pnp feature for now, this issue needs to be resolved in oxc-resolver and rspack-resolver.

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

@github-actions github-actions bot added the release: bug fix release: bug related release(mr only) label Aug 27, 2024
Copy link

netlify bot commented Aug 27, 2024

Deploy Preview for rspack canceled.

Name Link
🔨 Latest commit 1ce7fc9
🔍 Latest deploy log https://app.netlify.com/sites/rspack/deploys/66cdc2d7bc02a8000895629c

@chenjiahan chenjiahan merged commit a78cbde into main Aug 27, 2024
33 checks passed
@chenjiahan chenjiahan deleted the enable-pnp branch August 27, 2024 12:40
@chenjiahan chenjiahan mentioned this pull request Aug 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release: bug fix release: bug related release(mr only)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants