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.
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.
若有收获,就点个赞吧
0 人点赞
让时间为你证明