Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

feat: use enhanced-resolve for node resolution #36

Merged
merged 3 commits into from
Oct 10, 2024

Conversation

43081j
Copy link
Contributor

@43081j 43081j commented May 4, 2024

This moves to using enhanced-resolve for resolving reporters in the CLI. Primarily because it is more up to date with the node resolution algorithm, but seems we dropped a few deep dependencies along the way too (which is good).

you can see it caught a bug in one of our fixtures (missing package exports) which node's own algorithm would disallow (and enhanced-resolve does too)

in future i feel like this should actually just use import.meta.resolve(path, base). however, that signature is only available behind a flag in node. I did also make a branch using the ponyfill (import-meta-resolve on npm) instead of this but it will refuse to import a directory from our ESM sources (rightly so) so the tests fail

if you'd prefer that, i'd be happy to push the branch

43081j and others added 3 commits May 4, 2024 15:44
This moves to using `enhanced-resolve` for resolving reporters in the
CLI. Primarily because it is more up to date with the node resolution
algorithm, but seems we dropped a few deep dependencies along the way
too (which is good).
@lahmatiy lahmatiy merged commit fa83ce9 into csstree:master Oct 10, 2024
6 checks passed
@lahmatiy
Copy link
Member

Thank you!

@43081j 43081j deleted the enres branch October 11, 2024 03:11
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants