It has the same goal as this other PR #85 but different implementation: here I just extend the list of modules by adding items to the libs Map while the other PR updates the importee in the plugins' resolveId. If there are a lot of modules to resolve, it might be slightly faster to get them from the libs Map and not go through if+startsWith+replace. Open to discussion which is best.
This PR add support for the
node:
protocol.It has the same goal as this other PR #85 but different implementation: here I just extend the list of modules by adding items to the libs Map while the other PR updates the importee in the plugins' resolveId. If there are a lot of modules to resolve, it might be slightly faster to get them from the libs Map and not go through if+startsWith+replace. Open to discussion which is best.
Closes #84