Closed
Description
Currently we're using createIdResolver
from vite to create module resolvers that we use in the module fallback service callback.
We should explore if we could instead use a separate third party solution (like import-meta-resolve
, enhanced-resolve
, resolve
, etc...).
Why would that be beneficial?
- The vite team exposed the
createIdResolver
utility especially for us, but this is not a utility that they would like to have to expose and maintain (discussion) - We could reuse our module resolution implementation in
vitest-pool-workers
whilst it still needs to usevite@5
(PS: this would be pretty valuable in the short/middle term, not at all in the long term asvitest-pool-workers
should ideally just reuse our vite environment solution under the hood) - Our module fallback solution could become fairly generic, we could even externalize it in its own package and it could be used in non-vite projects (although I am not sure if/what use cases for this there are)
Metadata
Assignees
Labels
No labels