wooorm/import-meta-resolve

Async API for moduleResolve()?

justinfagnani opened this issue · 3 comments

I use import-meta-resolve in a web server, where each request may make several calls to moduleResolve(). It seems useful to have an async API to unblock the main thread while resolution is performing file I/O.

This project is more a copy of the node internals. So as that isn’t there, because reasons, I don’t really see mee making it

Ah, I see. I did open nodejs/node#54051 on Node to request an async API similar to moduleResolve(), so maybe if that's added it can be copied here.

Nice! I’ll close this for now here then. If that goes somewhere, we can talk about it then!