Resolve doesn't resolve real path for `basedir` if it is relative path
See original GitHub issueresolve
doesn’t resolve real path for basedir
if it is relative path.
I’v created a bad case example ( by lerna ) here https://github.com/malash/resolve-bad-case
The issue is related to https://github.com/browserify/resolve/issues/130 . The issue effected https://github.com/peerigon/extract-loader/issues/48 and may affect https://github.com/browserify/resolve/issues/163 .
Issue Analytics
- State:
- Created 5 years ago
- Comments:17 (10 by maintainers)
Top Results From Across the Web
How to reliably resolve a path relative to another?
Temporarily changing the current working directory, and using realpath() : $currentDir = getcwd(); chdir($baseDir); $resolvedPath = realpath($ ...
Read more >realpath - Manual - PHP
Here is a small and handy method to calculate the relative path from $from to $to. Note: On Windows it does not work...
Read more >Resolving paths (with absolute symlinks) against a base prefix
Is there any tool to resolve paths inside /mnt prefix before ... --relative-base=DIR looks promising, but actually serves another purpose.
Read more >Split-Path - PowerShell - Microsoft Learn
The Resolve parameter tells Split-Path to display the items that the split path ... This command determines whether the path is relative or...
Read more >pathlib — Object-oriented filesystem paths — Python 3.11.1 ...
If the path doesn't exist and strict is True , FileNotFoundError is raised. If strict is False , the path is resolved as...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thank you for your excellent repro case!
@ljharb Thank you very much for your commit. This commit works for me.