没有 require.resolve
相对解析可以通过 new URL('./local', import.meta.url) 处理。
对于完整的 require.resolve 替换,有标记的实验性 import.meta.resolve API。
也可以使用 module.createRequire()。
Relative resolution can be handled via new URL('./local', import.meta.url).
For a complete require.resolve replacement, there is a flagged experimental
import.meta.resolve API.
Alternatively module.createRequire() can be used.