Currently aliases are resolved from top down, so stream/web is (for example) resolved as unenv/runtime/node/stream/index/web rather than unenv/runtime/node/stream/web/index.
This PR reorders aliases so the more specific ones are at the top. Alternatively, we could use a helper function to do this for us.
Currently aliases are resolved from top down, so
stream/web
is (for example) resolved asunenv/runtime/node/stream/index/web
rather thanunenv/runtime/node/stream/web/index
.This PR reorders aliases so the more specific ones are at the top. Alternatively, we could use a helper function to do this for us.
https://github.com/unjs/nitro/issues/378