-
-
Notifications
You must be signed in to change notification settings - Fork 55
feat: use import-meta-resolve instead of enhanced-resolve #236
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
Conversation
|
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. |
|
New, updated, and removed dependencies detected. Learn more about Socket for GitHub ↗︎
|
ceab0e0 to
192a31d
Compare
192a31d to
6dd37c3
Compare
| if (path.isAbsolute(specifier)) { | ||
| for (const suffix of pathSuffixes) { | ||
| const filename = specifier + suffix | ||
|
|
||
| if (existsFile(filename)) { | ||
| return filename | ||
| } | ||
| } | ||
|
|
||
| return | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The path suffix part is way too complicated. Meanwhile enhanced-resolve and the oxc-resolver supports doing this internally.
This is only for demonstration.
I'll migrate to
oxc-resolverinstead in another PR.cc @SukkaW