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

Cannot resolve alias with / #154

Closed
huang-julien opened this issue Dec 27, 2023 · 0 comments · Fixed by #155
Closed

Cannot resolve alias with / #154

huang-julien opened this issue Dec 27, 2023 · 0 comments · Fixed by #155

Comments

@huang-julien
Copy link
Contributor

Environment

node: 20
pathe: 1.1.1

Reproduction

https://stackblitz.com/edit/stackblitz-starters-cvjzuh

unjs/nitro#2030

using JITI, it cannot resolve alias from the nitroOptions

Describe the bug

things like @/ or ~~/ cannot be correctly resolve with resolveAlias

resolveAlias('@/world', { '@/': 'hello' }) will return @/world instead of hello/world

Additional context

No response

Logs

No response

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 a pull request may close this issue.

1 participant