Cannot resolve alias with `/`
huang-julien opened this issue · comments
Julien Huang commented
Environment
node: 20
pathe: 1.1.1
Reproduction
https://stackblitz.com/edit/stackblitz-starters-cvjzuh
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