Skip to content

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

Merged
chenjiahan merged 1 commit intomainfrom
enable-pnp
Aug 27, 2024
Merged

fix(rspack-resolver): enable pnp feature#7707
chenjiahan merged 1 commit intomainfrom
enable-pnp

Conversation

@fi3ework
Copy link
Copy Markdown
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
@netlify
Copy link
Copy Markdown

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

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