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

Fixes "exports" field w/ PnP #46

Merged
merged 2 commits into from
Jan 17, 2025
Merged

Conversation

arcanis
Copy link
Contributor

@arcanis arcanis commented Jan 14, 2025

The pnp::Resolution::Resolved(path, subpath) tuple returns the subpath without leading /, whereas rspack-resolver expects one. This caused issues when importing paths from packages using exports:

Package subpath '.filters' is not defined by "exports" in /my/project/package.json

I updated the code to add this / if needed, plus two extra tests.

Copy link

codspeed-hq bot commented Jan 14, 2025

CodSpeed Performance Report

Merging #46 will not alter performance

Comparing arcanis:mael/exports-pnp (f289804) with main (ef9ac3a)

Summary

✅ 3 untouched benchmarks

@hardfist hardfist merged commit 69479aa into web-infra-dev:main Jan 17, 2025
18 checks passed
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.

2 participants